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"
|
"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 != "" {
|
||||||
|
|
Loading…
Reference in New Issue