repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
7f47487
parent
520292f
author
Eric Bower
date
2024-08-20 16:02:54 +0000 UTC
chore: fix linter
5 files changed,  +6, -3
M filehandlers/assets/handler.go
+2, -3
 1@@ -353,9 +353,8 @@ func (h *UploadAssetHandler) Write(s ssh.Session, entry *utils.FileEntry) (strin
 2 	remaining := int64(storageMax) - int64(curStorageSize)
 3 	sizeRemaining := min(remaining+curFileSize, fileMax)
 4 	if sizeRemaining <= 0 {
 5-		msg := "storage quota reached"
 6-		wish.Fatalln(s, msg)
 7-		return "", fmt.Errorf(msg)
 8+		wish.Fatalln(s, "storage quota reached")
 9+		return "", fmt.Errorf("storage quota reached")
10 	}
11 	logger = logger.With(
12 		"storage max", storageMax,
M pgs/calc_route_test.go
+1, -0
1@@ -428,6 +428,7 @@ func TestCalcRoutes(t *testing.T) {
2 	for _, fixture := range fixtures {
3 		t.Run(fixture.Name, func(t *testing.T) {
4 			if cmp.Equal(fixture.Actual, fixture.Expected) == false {
5+				//nolint
6 				t.Fatalf(cmp.Diff(fixture.Expected, fixture.Actual))
7 			}
8 		})
M pgs/header_test.go
+1, -0
1@@ -172,6 +172,7 @@ func TestParseHeaderText(t *testing.T) {
2 			}
3 			fmt.Println(results)
4 			if cmp.Equal(results, fixture.expect) == false {
5+				//nolint
6 				t.Fatalf(cmp.Diff(fixture.expect, results))
7 			}
8 		})
M pgs/redirect_test.go
+1, -0
1@@ -69,6 +69,7 @@ func TestParseRedirectText(t *testing.T) {
2 				t.Error(err)
3 			}
4 			if cmp.Equal(results, fixture.expect) == false {
5+				//nolint
6 				t.Fatalf(cmp.Diff(fixture.expect, results))
7 			}
8 		})
M shared/storage/proxy_test.go
+1, -0
1@@ -97,6 +97,7 @@ func TestUriToImgProcessOpts(t *testing.T) {
2 				t.Error(err)
3 			}
4 			if cmp.Equal(results, fixture.expect) == false {
5+				//nolint
6 				t.Fatalf(cmp.Diff(fixture.expect, results))
7 			}
8 		})