0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 21:30:16 +02:00

Removed redunant else statement

This commit is contained in:
h3yEllex 2017-10-24 13:02:55 +03:00
parent 60cb509ff9
commit 81312a6647

View file

@ -422,7 +422,7 @@ func (c *Connection) runClient() error {
if c.File.Hash != fileHash { if c.File.Hash != fileHash {
return fmt.Errorf("\nUh oh! %s is corrupted! Sorry, try again.\n", c.File.Name) return fmt.Errorf("\nUh oh! %s is corrupted! Sorry, try again.\n", c.File.Name)
} else { }
if c.File.IsDir { // if the file was originally a dir if c.File.IsDir { // if the file was originally a dir
fmt.Print("decompressing folder") fmt.Print("decompressing folder")
log.Debug("untarring " + c.File.Name) log.Debug("untarring " + c.File.Name)
@ -440,7 +440,6 @@ func (c *Connection) runClient() error {
} else { } else {
fmt.Printf("\nReceived file written to %s\n", path.Join(c.Path, c.File.Name)) fmt.Printf("\nReceived file written to %s\n", path.Join(c.Path, c.File.Name))
} }
}
} }
return nil return nil