Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Aug 20, 2024
1 parent 520292f commit 7f47487
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions filehandlers/assets/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,8 @@ func (h *UploadAssetHandler) Write(s ssh.Session, entry *utils.FileEntry) (strin
remaining := int64(storageMax) - int64(curStorageSize)
sizeRemaining := min(remaining+curFileSize, fileMax)
if sizeRemaining <= 0 {
msg := "storage quota reached"
wish.Fatalln(s, msg)
return "", fmt.Errorf(msg)
wish.Fatalln(s, "storage quota reached")
return "", fmt.Errorf("storage quota reached")
}
logger = logger.With(
"storage max", storageMax,
Expand Down
1 change: 1 addition & 0 deletions pgs/calc_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ func TestCalcRoutes(t *testing.T) {
for _, fixture := range fixtures {
t.Run(fixture.Name, func(t *testing.T) {
if cmp.Equal(fixture.Actual, fixture.Expected) == false {
//nolint
t.Fatalf(cmp.Diff(fixture.Expected, fixture.Actual))
}
})
Expand Down
1 change: 1 addition & 0 deletions pgs/header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func TestParseHeaderText(t *testing.T) {
}
fmt.Println(results)
if cmp.Equal(results, fixture.expect) == false {
//nolint
t.Fatalf(cmp.Diff(fixture.expect, results))
}
})
Expand Down
1 change: 1 addition & 0 deletions pgs/redirect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func TestParseRedirectText(t *testing.T) {
t.Error(err)
}
if cmp.Equal(results, fixture.expect) == false {
//nolint
t.Fatalf(cmp.Diff(fixture.expect, results))
}
})
Expand Down
1 change: 1 addition & 0 deletions shared/storage/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func TestUriToImgProcessOpts(t *testing.T) {
t.Error(err)
}
if cmp.Equal(results, fixture.expect) == false {
//nolint
t.Fatalf(cmp.Diff(fixture.expect, results))
}
})
Expand Down

0 comments on commit 7f47487

Please sign in to comment.