Skip to content

Commit

Permalink
removed deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
jetzlstorfer authored Jun 20, 2023
1 parent 4db8bde commit 82b39bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/token/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"

myauth "github.com/jetzlstorfer/plattentests-go/internal/auth"
"github.com/kelseyhightower/envconfig"
Expand Down Expand Up @@ -80,7 +80,7 @@ func completeAuth(w http.ResponseWriter, r *http.Request) {
log.Fatalf("could not marshal token: %v", err)
}

err = ioutil.WriteFile(config.TokenFile, btys, 0644)
err = os.WriteFile(config.TokenFile, btys, 0644)
if err != nil {
log.Fatalf("could not write file: %v", err)
}
Expand Down

0 comments on commit 82b39bc

Please sign in to comment.