Skip to content

Commit

Permalink
test: fix linter warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
  • Loading branch information
flavio committed Sep 17, 2024
1 parent 7a1b6dc commit 1703fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
)

func main() {
//nolint:mnd
if len(os.Args) != 2 {
log.Fatalln("Wrong usage, expected either 'validate' or `validate-settings'")
}
Expand Down
1 change: 1 addition & 0 deletions validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func validate(input []byte) []byte {
decoder.DisallowUnknownFields()
err := decoder.Decode(&validationRequest)
if err != nil {
//nolint:mnd
return marshalValidationResponseOrFail(
RejectRequest(
Message(fmt.Sprintf("Error deserializing validation request: %v", err)),
Expand Down

0 comments on commit 1703fd9

Please sign in to comment.