main: fix vet error

This commit is contained in:
Kevin Burke 2023-01-28 14:10:29 -08:00
parent 33760e0990
commit 1f89cdc69a
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@ import (
"flag" "flag"
"fmt" "fmt"
"io" "io"
"io/ioutil"
"os" "os"
"os/exec" "os/exec"
"strings" "strings"
@ -131,7 +130,7 @@ func main() {
} }
} }
checkError(bs.Err(), "reading markdown file") checkError(bs.Err(), "reading markdown file")
f, err := ioutil.TempFile("", "chroma-markdown-") f, err := os.CreateTemp("", "chroma-markdown-")
checkError(err, "creating temporary file") checkError(err, "creating temporary file")
w := bufio.NewWriter(f) w := bufio.NewWriter(f)
if needCSS && *css != "" { if needCSS && *css != "" {