Skip to content

Commit

Permalink
Linting fix. The else statement is not necesary since the IF chunk re…
Browse files Browse the repository at this point in the history
…turns.
  • Loading branch information
pecigonzalo committed Sep 1, 2015
1 parent 3d70129 commit 2608e12
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions winrmcp/winrmcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ func (fs *Winrmcp) Copy(fromPath, toPath string) error {

if !fi.IsDir() {
return fs.Write(toPath, f)
} else {
fw := fileWalker{
client: fs.client,
config: fs.config,
toDir: toPath,
fromDir: fromPath,
}
return filepath.Walk(fromPath, fw.copyFile)
}
fw := fileWalker{
client: fs.client,
config: fs.config,
toDir: toPath,
fromDir: fromPath,
}
return filepath.Walk(fromPath, fw.copyFile)
}

func (fs *Winrmcp) Write(toPath string, src io.Reader) error {
Expand Down

0 comments on commit 2608e12

Please sign in to comment.