Skip to content

Commit 53b9d2c

Browse files
committed
fix: liter errors
1 parent 021c587 commit 53b9d2c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

config/formats/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ func parseConfig(filename string, out any, parser Parser) error {
2121
func loadConfigFile(filename string) ([]byte, error) {
2222
configFile, err := os.ReadFile(filename)
2323
if err != nil {
24-
return nil, fmt.Errorf("Error reading config file: %s\n", err)
24+
//lint:ignore ST1005 this is a formatted error
25+
return nil, fmt.Errorf("error reading config file: %s\n", err)
2526
}
2627

2728
return configFile, nil

mqtt/main_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ func (c *mockClient) OptionsReader() mqtt.ClientOptionsReader {
118118
}
119119

120120
type mockToken struct {
121-
cntWait int
121+
cntWait int
122+
//lint:ignore U1000
122123
cntError int
123124
complete chan struct{}
124125
}

0 commit comments

Comments
 (0)