From 2347e57b4a77a75edebbae6f7a6ab51c6bcb89da Mon Sep 17 00:00:00 2001 From: Nils Date: Wed, 27 Aug 2025 11:12:15 +0200 Subject: [PATCH] Fix: fmt --- .github/workflows/ci.yml | 8 ++++++++ main.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09cc2bd..3fd9da4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,14 @@ jobs: - name: 🔧 Setup go uses: actions/setup-go@v5 + - name: 🧝‍♀️ Check formatting + run: | + if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then + echo "Go files are not formatted:" + gofmt -d . + exit 1 + fi + # https://github.com/marketplace/actions/run-golangci-lint - name: 🌡️ Lint uses: golangci/golangci-lint-action@v8 diff --git a/main.go b/main.go index 461e404..7bb8358 100644 --- a/main.go +++ b/main.go @@ -361,7 +361,7 @@ func downloadTiles(ctx context.Context, conn *websocket.Conn, tilesToDownload [] ticker := time.NewTicker(time.Second / time.Duration(*rateLimit)) defer ticker.Stop() - DownloadLoop: +DownloadLoop: for _, tile := range tilesToDownload { select { case <-ctx.Done():