Skip to content

Commit

Permalink
Fix some lint findings
Browse files Browse the repository at this point in the history
  • Loading branch information
damyan committed Nov 18, 2024
1 parent 32608e1 commit 798288d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/onmetal/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ func Init6() {
},
}

configData, err := yaml.Marshal(data)
configData, _ := yaml.Marshal(data)

file, err := os.CreateTemp("", "config.yaml")
file, _ := os.CreateTemp("", "config.yaml")
defer func() {
_ = file.Close()
_ = os.Remove(file.Name())
}()
_ = os.WriteFile(file.Name(), configData, 0644)

_, err = setup6(file.Name())
_, err := setup6(file.Name())
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -295,16 +295,16 @@ func TestPrefixDelegationNotRequested7(t *testing.T) {
},
}

configData, err := yaml.Marshal(data)
configData, _ := yaml.Marshal(data)

file, err := os.CreateTemp("", "config.yaml")
file, _ := os.CreateTemp("", "config.yaml")
defer func() {
_ = file.Close()
_ = os.Remove(file.Name())
}()
_ = os.WriteFile(file.Name(), configData, 0644)

_, err = setup6(file.Name())
_, err := setup6(file.Name())
if err == nil {
t.Fatal("no error occurred when providing wrong prefix delegation length, but it should have")
}
Expand Down

0 comments on commit 798288d

Please sign in to comment.