Skip to content

Commit 2347e57

Browse files
committed
Fix: fmt
1 parent a3670a4 commit 2347e57

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ jobs:
1818
- name: 🔧 Setup go
1919
uses: actions/setup-go@v5
2020

21+
- name: 🧝‍♀️ Check formatting
22+
run: |
23+
if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then
24+
echo "Go files are not formatted:"
25+
gofmt -d .
26+
exit 1
27+
fi
28+
2129
# https://github.com/marketplace/actions/run-golangci-lint
2230
- name: 🌡️ Lint
2331
uses: golangci/golangci-lint-action@v8

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func downloadTiles(ctx context.Context, conn *websocket.Conn, tilesToDownload []
361361
ticker := time.NewTicker(time.Second / time.Duration(*rateLimit))
362362
defer ticker.Stop()
363363

364-
DownloadLoop:
364+
DownloadLoop:
365365
for _, tile := range tilesToDownload {
366366
select {
367367
case <-ctx.Done():

0 commit comments

Comments
 (0)