Browse Source

Fix golint warning

Julian Kornberger 8 years ago
parent
commit
38ce06637b
1 changed files with 2 additions and 4 deletions
  1. 2 4
      ftp.go

+ 2 - 4
ftp.go

@@ -131,11 +131,9 @@ func (c *ServerConn) Login(user, password string) error {
 	}
 	}
 
 
 	// Switch to UTF-8
 	// Switch to UTF-8
-	if err := c.setUTF8(); err != nil {
-		return err
-	}
+	err = c.setUTF8()
 
 
-	return nil
+	return err
 }
 }
 
 
 // feat issues a FEAT FTP command to list the additional commands supported by
 // feat issues a FEAT FTP command to list the additional commands supported by