Skip to content

Commit b3ae9ae

Browse files
committed
bump
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
1 parent 2e8d3f4 commit b3ae9ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/linters/module/rules/oss_library.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"sigs.k8s.io/yaml"
2828

2929
"github.com/Masterminds/semver/v3"
30+
3031
"github.com/deckhouse/dmt/pkg"
3132
"github.com/deckhouse/dmt/pkg/errors"
3233
)

pkg/linters/module/rules/oss_library_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@ func TestOSSRule_OssModuleRule(t *testing.T) {
272272
var errorTexts []string
273273
var warnTexts []string
274274
for _, e := range errs {
275-
if e.Level == pkg.Error {
275+
switch e.Level {
276+
case pkg.Error:
276277
errorTexts = append(errorTexts, e.Text)
277-
} else if e.Level == pkg.Warn {
278+
case pkg.Warn:
278279
warnTexts = append(warnTexts, e.Text)
279280
}
280281
}

0 commit comments

Comments
 (0)