diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-03-24 10:11:16 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-03-24 16:14:51 +0100 |
commit | b5f39d23b86f9cb83c51da9fe4abb4c19c01c3b7 (patch) | |
tree | cf23180dc07698391cf47c2fe525755417729020 /create | |
parent | 3011f36c27ecde309325e6c75ca377f4f87fa97a (diff) | |
download | hugo-b5f39d23b86f9cb83c51da9fe4abb4c19c01c3b7.tar.gz hugo-b5f39d23b86f9cb83c51da9fe4abb4c19c01c3b7.zip |
all: Apply staticcheck recommendations
Diffstat (limited to 'create')
-rw-r--r-- | create/content.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/create/content.go b/create/content.go index 264a0f3ac..e48dfc078 100644 --- a/create/content.go +++ b/create/content.go @@ -142,6 +142,9 @@ func newContentFromDir( } out, err := targetFs.Create(targetFilename) + if err != nil { + return err + } _, err = io.Copy(out, in) if err != nil { |