Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Sep 15, 2024
1 parent 905156b commit 05bface
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pmtiles/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func headerToJson(header HeaderV3) HeaderJson {
}

func headerToStringifiedJson(header HeaderV3) string {
s, _ := json.MarshalIndent(headerToJson(header),"", " ")
s, _ := json.MarshalIndent(headerToJson(header), "", " ")
return string(s)
}

Expand Down
2 changes: 1 addition & 1 deletion pmtiles/show_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package pmtiles
import (
"bytes"
"encoding/json"
"github.com/stretchr/testify/assert"
"log"
"os"
"testing"
"github.com/stretchr/testify/assert"
)

func TestShowHeader(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pmtiles/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Write(logger *log.Logger, inputArchive string, newHeaderJsonFile string, ne
// write the new the metadata
// copy the leaf directories
// copy the tile data
file, err := os.OpenFile(inputArchive, os.O_RDWR, 0666)
file, err := os.OpenFile(inputArchive, os.O_RDWR, 0666)

buf := make([]byte, 127)
_, err = file.Read(buf)
Expand Down
4 changes: 2 additions & 2 deletions pmtiles/write_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package pmtiles

import (
"os"
"github.com/stretchr/testify/assert"

Check failure on line 4 in pmtiles/write_test.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

"github.com/stretchr/testify/assert" imported and not used
"io"
"io/ioutil"
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
)

func TestWriteHeader(t *testing.T) {
Expand Down

0 comments on commit 05bface

Please sign in to comment.