fix(pkg): lint errors (#32)

This commit is contained in:
Jeroen Op 't Eynde 2022-10-24 09:08:51 +02:00 committed by GitHub
parent ccaa0b245b
commit 794fed0c46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View file

@ -1,7 +1,6 @@
package render
import (
"io/ioutil"
"os"
"path/filepath"
@ -22,7 +21,7 @@ func To(pkg docsonnet.Package, dir string, opts Opts) (int, error) {
if err := os.MkdirAll(dir, os.ModePerm); err != nil {
return n, err
}
if err := ioutil.WriteFile(fullpath, []byte(v), 0644); err != nil {
if err := os.WriteFile(fullpath, []byte(v), 0644); err != nil {
return n, err
}
n++