Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Orive <adrian.orive.oneca@gmail.com>
  • Loading branch information
Adirio committed Nov 14, 2019
1 parent 971cf03 commit dcd5eb2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/scaffold/output.go
Expand Up @@ -52,9 +52,6 @@ func (fw *FileWriter) WriteCloser(path string) (io.Writer, error) {

// WriteFile write given content to the file path
func (fw *FileWriter) WriteFile(filePath string, content []byte) error {
if fw.Fs == nil {
fw.Fs = afero.NewOsFs()
}
f, err := fw.WriteCloser(filePath)
if err != nil {
return fmt.Errorf("failed to create %s: %v", filePath, err)
Expand Down

0 comments on commit dcd5eb2

Please sign in to comment.