Skip to content

Commit 7b718c2

Browse files
committed
linting happiness
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
1 parent 1036293 commit 7b718c2

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

pkg/analysis/helpers/markers/analyzer.go

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,17 @@ func extractGenDeclMarkers(typ *ast.GenDecl, results *markers) {
169169
}
170170
}
171171

172-
// The marker set would apply to all specs in the GenDecl.
173-
// This covers the case where multiple types are defined with
174-
// this pattern:
175-
//
176-
// // some generic comment
177-
// type(
178-
// Foo struct{}
179-
//
180-
// Bar struct{}
181-
// )
182-
//
172+
// The marker set would apply to all specs in the GenDecl.
173+
// This covers the case where multiple types are defined with
174+
// this pattern:
175+
//
176+
// // some generic comment
177+
// type(
178+
// Foo struct{}
179+
//
180+
// Bar struct{}
181+
// )
182+
//
183183
for _, spec := range typ.Specs {
184184
typeSpec, ok := spec.(*ast.TypeSpec)
185185
if !ok {
@@ -369,11 +369,13 @@ func NewMarkerSet(markers ...Marker) MarkerSet {
369369

370370
func mergeMarkerSets(markerSets ...MarkerSet) MarkerSet {
371371
ms := make(MarkerSet)
372+
372373
for _, markerSet := range markerSets {
373374
for _, markers := range markerSet {
374375
ms.Insert(markers...)
375376
}
376377
}
378+
377379
return ms
378380
}
379381

0 commit comments

Comments
 (0)