Skip to content

Commit

Permalink
Adding new line while appemding two files
Browse files Browse the repository at this point in the history
  • Loading branch information
BugDiver committed Aug 28, 2017
1 parent 2b2fd29 commit 3fbf467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ func AppendToFile(srcFile, destFile string) error {
if err != nil {
return fmt.Errorf("Failed to read %s. %s \n", srcFile, err.Error())
}

srcFileContent = fmt.Sprintf("\n%s\n", srcFileContent)
if _, err = f.WriteString(srcFileContent); err != nil {
return fmt.Errorf("Failed to append from %s. %s \n", srcFile, err.Error())
}
Expand Down

0 comments on commit 3fbf467

Please sign in to comment.