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