Skip to content

Commit 4539e30

Browse files
authored
Merge pull request #1195 from Adirio/remove-duplicate-code
Remove duplicate code
2 parents 971cf03 + dcd5eb2 commit 4539e30

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/scaffold/output.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ func (fw *FileWriter) WriteCloser(path string) (io.Writer, error) {
5252

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

0 commit comments

Comments
 (0)