main: fix vet error
This commit is contained in:
parent
33760e0990
commit
1f89cdc69a
3
main.go
3
main.go
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in New Issue