mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02: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