Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Aug 19, 2024
1 parent 20955c2 commit 8278a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions integrationkey/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"encoding/json"
"errors"
"fmt"
"io"

"github.com/google/uuid"
"github.com/target/goalert/gadb"
Expand All @@ -29,7 +28,7 @@ func destHash(dest gadb.DestV1) (hash [32]byte) {
panic(err)
}
h := sha256.New()
_, _ = io.WriteString(h, string(data))
_, _ = h.Write(data)
copy(hash[:], h.Sum(nil))
return hash
}
Expand Down
2 changes: 1 addition & 1 deletion test/smoke/systemlimits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TestSystemLimits(t *testing.T) {
g := h.GraphQLQuery2(query)
if len(g.Errors) > 1 {
for _, err := range g.Errors {
t.Logf(err.Message)
t.Log(err.Message)
}
t.Fatalf("got %d errors; want 0 or 1", len(g.Errors))
}
Expand Down

0 comments on commit 8278a7d

Please sign in to comment.