fix misspells and ineffectual assignments

This commit is contained in:
Nicola Murino
2019-07-20 21:17:53 +02:00
parent 1019d74243
commit 22b8dc7f1d
7 changed files with 33 additions and 18 deletions

View File

@@ -33,8 +33,8 @@ type Configuration struct {
Umask string `json:"umask"`
}
// Initalize the SFTP server and add a persistent listener to handle inbound SFTP connections.
func (c Configuration) Initalize(configDir string) error {
// Initialize the SFTP server and add a persistent listener to handle inbound SFTP connections.
func (c Configuration) Initialize(configDir string) error {
umask, err := strconv.ParseUint(c.Umask, 8, 8)
if err == nil {
utils.SetUmask(int(umask), c.Umask)