mirror of
https://github.com/directorz/mailfull-go.git
synced 2025-12-18 01:57:04 +00:00
Add missing defer statements #2
This commit is contained in:
2
user.go
2
user.go
@@ -169,6 +169,7 @@ func (r *Repository) usersHashedPassword(domainName string) (map[string]string,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
hashedPasswords := map[string]string{}
|
||||
|
||||
@@ -214,6 +215,7 @@ func (r *Repository) userForwards(domainName, userName string) ([]string, error)
|
||||
|
||||
return nil, err
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
forwards := make([]string, 0, 5)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user