Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Make the linter pipe down
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Aug 21, 2024
1 parent b0d4d7c commit 8ab1ac4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/sqlutil/sqlutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,5 +218,5 @@ func assertNoError(t *testing.T, err error, msg string) {
if err == nil {
return
}
t.Fatalf(msg)
t.Fatalf("%s", msg)
}
6 changes: 3 additions & 3 deletions roomserver/acls/acls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ func TestOpenACLsWithBlacklist(t *testing.T) {
roomID := "!test:test.com"
allowRegex, err := compileACLRegex("*")
if err != nil {
t.Fatalf(err.Error())
t.Fatalf("%s", err.Error())
}
denyRegex, err := compileACLRegex("foo.com")
if err != nil {
t.Fatalf(err.Error())
t.Fatalf("%s", err.Error())
}

acls := ServerACLs{
Expand Down Expand Up @@ -72,7 +72,7 @@ func TestDefaultACLsWithWhitelist(t *testing.T) {
roomID := "!test:test.com"
allowRegex, err := compileACLRegex("foo.com")
if err != nil {
t.Fatalf(err.Error())
t.Fatalf("%s", err.Error())
}

acls := ServerACLs{
Expand Down
2 changes: 1 addition & 1 deletion userapi/internal/key_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (a *UserInternalAPI) QueryDeviceMessages(ctx context.Context, req *api.Quer
if m.StreamID > maxStreamID {
maxStreamID = m.StreamID
}
if m.KeyJSON == nil || len(m.KeyJSON) == 0 {
if len(m.KeyJSON) == 0 {
continue
}
result = append(result, m)
Expand Down

0 comments on commit 8ab1ac4

Please sign in to comment.