Skip to content

Commit 2560a72

Browse files
committed
Ignore govet notices
1 parent 91e8d9a commit 2560a72

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

values/exitCode.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package values
22

33
import (
4-
"github.com/echocat/caretakerd/errors"
54
"strconv"
5+
6+
"github.com/echocat/caretakerd/errors"
67
)
78

89
// ExitCode represents an exitCode of a command.
@@ -18,7 +19,7 @@ func (i ExitCode) String() string {
1819
func (i *ExitCode) Set(value string) error {
1920
valueAsInt, err := strconv.Atoi(value)
2021
if err != nil {
21-
return errors.New("Illegal exit Code value: " + value)
22+
return errors.New("Illegal exit Code value: " + value) //nolint:govet
2223
}
2324
*i = ExitCode(valueAsInt)
2425
return nil

values/integer.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package values
22

33
import (
4-
"github.com/echocat/caretakerd/errors"
54
"strconv"
5+
6+
"github.com/echocat/caretakerd/errors"
67
)
78

89
// Integer represents an int with more features as the primitive type.
@@ -28,7 +29,7 @@ func (instance Integer) CheckedString() (string, error) {
2829
func (instance *Integer) Set(value string) error {
2930
valueAsInt, err := strconv.Atoi(value)
3031
if err != nil {
31-
return errors.New("Illegal integer value: " + value)
32+
return errors.New("Illegal integer value: " + value) //nolint:govet
3233
}
3334
return instance.SetFromInt(valueAsInt)
3435
}

values/nonNegativeInteger.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package values
22

33
import (
4-
"github.com/echocat/caretakerd/errors"
54
"strconv"
5+
6+
"github.com/echocat/caretakerd/errors"
67
)
78

89
// NonNegativeInteger represents an int with more features as the primitive type and that could not be negative.
@@ -28,7 +29,7 @@ func (i NonNegativeInteger) CheckedString() (string, error) {
2829
func (i *NonNegativeInteger) Set(value string) error {
2930
valueAsInt, err := strconv.Atoi(value)
3031
if err != nil {
31-
return errors.New("Illegal integer value: " + value)
32+
return errors.New("Illegal integer value: " + value) //nolint:govet
3233
}
3334
return i.SetFromInt(valueAsInt)
3435
}

0 commit comments

Comments
 (0)