Skip to content

Commit 49d0ca2

Browse files
committed
fix(linting): remove unnecessary nolint comments
1 parent 907dc1c commit 49d0ca2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/upswake/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (j *serveJob) sendWakeRequest() {
114114
return
115115
}
116116
req.Header.Set("Content-Type", "application/json")
117-
resp, err := j.client.Do(req) //nolint:gosec // G704: This url is only controlled by the user via the config file loaded, which also contains the MAC we are sending anyway
117+
resp, err := j.client.Do(req)
118118

119119
defer func(resp *http.Response) {
120120
if resp == nil {

internal/domain/entity/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ type NutServer struct {
7474
Host string `json:"host"`
7575
Port int `json:"port"`
7676
Username string `json:"username"`
77-
Password string `json:"password"` //nolint:gosec // G117: TODO investigate secure ways to handle this password, such as using environment variables
77+
Password string `json:"password"`
7878
Targets []*TargetServer `json:"targets"`
7979
}
8080

internal/domain/entity/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestNutServer_Validate(t *testing.T) {
151151
Host string
152152
Port int
153153
Username string
154-
Password string //nolint:gosec // G117: This is a test so we don't care about hardcoding a password here
154+
Password string
155155
Targets []*TargetServer
156156
}
157157
tests := []struct {

internal/infrastructure/config/viper/entities.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type NutServer struct {
99
Host string `mapstructure:"host"`
1010
Port int `mapstructure:"port"`
1111
Username string `mapstructure:"username"`
12-
Password string `mapstructure:"password"` //nolint:gosec // G117: TODO investigate secure ways to handle this password, such as using environment variables
12+
Password string `mapstructure:"password"`
1313
Targets []*TargetServer `mapstructure:"targets"`
1414
}
1515

0 commit comments

Comments
 (0)