return nil
}
-func copyFile(source string, dest string) (err error) {
+func copyFile(source string, dest string) error {
sf, err := os.Open(source)
if err != nil {
return err
si, err := os.Stat(source)
if err != nil {
err = os.Chmod(dest, si.Mode())
+
+ if err != nil {
+ return err
+ }
}
}
- return
+ return nil
}
-func copyDir(source string, dest string) (err error) {
+func copyDir(source string, dest string) error {
fi, err := os.Stat(source)
if err != nil {
return err
return nil
}
-func copyJekyllFilesAndFolders(jekyllRoot string, dest string) (err error) {
+func copyJekyllFilesAndFolders(jekyllRoot string, dest string) error {
fi, err := os.Stat(jekyllRoot)
if err != nil {
return err