Skip to content

Commit

Permalink
satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Apr 12, 2024
1 parent 9ab43a0 commit 15e49d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/internal/core/reconfigure-switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (r *ReconfigureSwitch) Run() {

// Max every 5 Seconds, TODO configurable ?
if time.Since(r.lastSync) < 5*time.Second {
r.Core.log.Info("skiping reconfiguration because of last reconfiguration was too recent")
r.Core.log.Info("skipping reconfiguration because of last reconfiguration was too recent")
return
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/internal/switcher/sonic/sonic.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func getPortsConfig(filepath string) (map[string]PortInfo, error) {
config := struct {
Ports map[string]PortInfo `json:"PORT"`
}{}
err = json.Unmarshal(byteValue, &config)
err = json.Unmarshal(byteValue, &config) // nolint:musttag

return config.Ports, err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/internal/switcher/templates/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func readConf(t *testing.T, i string) types.Conf {
b, err := os.ReadFile(i)
require.NoError(t, err, "unexpected error when reading testing input")

err = yaml.Unmarshal(b, &c)
err = yaml.Unmarshal(b, &c) // nolint:musttag
require.NoError(t, err, "unexpected error when unmarshalling testing input")
return c
}
Expand Down

0 comments on commit 15e49d6

Please sign in to comment.