mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
all: Apply staticcheck recommendations
This commit is contained in:
@@ -142,6 +142,9 @@ func newContentFromDir(
|
||||
}
|
||||
|
||||
out, err := targetFs.Create(targetFilename)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
_, err = io.Copy(out, in)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user