Skip to content

Commit 037c18b

Browse files
committed
ci: lint: remove unneccessary empty lines
1 parent bc56021 commit 037c18b

File tree

5 files changed

+0
-7
lines changed

5 files changed

+0
-7
lines changed

pkg/xsd/attribute.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,5 @@ func (a *Attribute) compile(s *Schema) {
113113
if a.typ == nil {
114114
panic("Cannot resolve attribute type: " + a.Type)
115115
}
116-
117116
}
118117
}

pkg/xsd/attributegroup.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,14 @@ func (att *AttributeGroup) compile(sch *Schema, parentElement *Element) {
4747
// Second GoName may be different depending on the DuplicateCount
4848
goNames[attribute.GoName()] = count
4949
}
50-
5150
}
5251

5352
func (att *AttributeGroup) GoName() string {
5453
return strcase.ToCamel(att.Name)
55-
5654
}
5755

5856
func (att *AttributeGroup) GoTypeName() string {
5957
return att.GoName()
60-
6158
}
6259

6360
func (att *AttributeGroup) Schema() *Schema {

pkg/xsd/choice.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ func (c *Choice) compile(sch *Schema, parentElement *Element) {
4646
}
4747
// deduplicate elements that represent duplicate within xsd:choice/xsd:sequence structure
4848
c.allElements = append(c.ElementList, deduplicateElements(inheritedElements)...)
49-
5049
}
5150

5251
func (c *Choice) Elements() []Element {

pkg/xsd/extension.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ func (ext *Extension) compile(sch *Schema, parentElement *Element) {
103103
for idx := range ext.AttributeGroups {
104104
attrGroup := &ext.AttributeGroups[idx]
105105
attrGroup.compile(sch, parentElement)
106-
107106
}
108107

109108
// Handle improbable name clash. Consider XSD defining two attributes on the element:

pkg/xsd/schema.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ func (sch *Schema) findReferencedElement(ref reference) *Element {
8585
}
8686
if innerSchema != sch {
8787
sch.registerImportedModule(innerSchema)
88-
8988
}
9089
return innerSchema.GetElement(ref.Name())
9190
}

0 commit comments

Comments
 (0)