mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2026-02-02 15:45:12 +01:00
fix(pkg): lint errors (#32)
This commit is contained in:
parent
ccaa0b245b
commit
794fed0c46
3 changed files with 6 additions and 7 deletions
|
|
@ -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++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue