[golangci-lint]: check err for file.Close()

errwrp
Martin Dosch 1 year ago
parent b79e7dd502
commit 2cba774eff
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -142,7 +142,10 @@ func parseConfig(configPath string) (configuration, error) {
}
}
}
file.Close()
err = file.Close()
if err != nil {
fmt.Println("error closing file:", err)
}
// Check if the username is a valid JID
output.username, err = MarshalJID(output.username)

Loading…
Cancel
Save