Skip to content

Commit

Permalink
update go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
flopp committed Apr 3, 2024
1 parent c236fc7 commit 722a1fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.16.x, 1.17.x]
go-version: [1.22.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
Expand Down
3 changes: 1 addition & 2 deletions tile_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
_ "image/jpeg" // to be able to decode jpegs
_ "image/png" // to be able to decode pngs
"io"
"io/ioutil"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -131,7 +130,7 @@ func (t *TileFetcher) download(url string) ([]byte, error) {

defer resp.Body.Close()

contents, err := ioutil.ReadAll(resp.Body)
contents, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 722a1fc

Please sign in to comment.