Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Apr 18, 2024
1 parent e0e2003 commit 89d9423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package api
import (
"bytes"
"encoding/json"
"io/ioutil"
"io"
"net/http"
"net/http/httptest"
"sort"
Expand Down Expand Up @@ -51,7 +51,7 @@ func (s *RouterAPISuite) TestHealthcheckOK() {
s.api.Healthcheck(w, req)

resp := w.Result()
body, _ := ioutil.ReadAll(resp.Body)
body, _ := io.ReadAll(resp.Body)

s.Equal(http.StatusOK, resp.StatusCode)
s.Equal("WORKING", string(body))
Expand Down
4 changes: 2 additions & 2 deletions cmd/router/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main

import (
"flag"
"io/ioutil"
"io"
"log"
"os"
"time"
Expand Down Expand Up @@ -125,7 +125,7 @@ func main() {
return
}
clustersFile := &backend.ClustersFile{}
data, err := ioutil.ReadAll(f)
data, err := io.ReadAll(f)
if err != nil {
log.Printf("failed to load clusters file: %v\n", err)
return
Expand Down

0 comments on commit 89d9423

Please sign in to comment.