Skip to content

Commit

Permalink
🎨 Use os not ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
wesen committed Sep 28, 2023
1 parent eea83ca commit c68ae68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/css-json/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"github.com/tdewolff/parse/v2"
"github.com/tdewolff/parse/v2/css"
"io/ioutil"
"os"
"strings"

Expand All @@ -20,7 +19,7 @@ func main() {
}

filePath := os.Args[1]
fileContent, err := ioutil.ReadFile(filePath)
fileContent, err := os.ReadFile(filePath)
if err != nil {
fmt.Println("Error reading file:", err)
return
Expand Down

0 comments on commit c68ae68

Please sign in to comment.