Skip to content

Commit

Permalink
use os.writefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Doarakko committed Jan 18, 2023
1 parent abb1828 commit 87f9e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"image"
"image/draw"
"image/png"
"io/ioutil"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -50,7 +49,8 @@ func saveImage(filename string, img image.Image) error {
if err != nil {
return err
}
return ioutil.WriteFile(filename, buf.Bytes(), 0644)

return os.WriteFile(filename, buf.Bytes(), 0644)
}

var toppings [6]Topping
Expand Down

0 comments on commit 87f9e94

Please sign in to comment.