Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ func ReadConfigFile(c *cli.Context, log *zerolog.Logger) (settings *configFileSe

// Parse it again, with strict mode, to find warnings.
if file, err := os.Open(configFile); err == nil {
defer func() { _ = file.Close() }()
decoder := yaml.NewDecoder(file)
decoder.KnownFields(true)
var unusedConfig configFileSettings
Expand Down
1 change: 1 addition & 0 deletions token/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func (e *Encrypter) fetchKey(filename string) (*[32]byte, error) {
if err != nil {
return nil, err
}
defer func() { _ = f.Close() }()
buf := new(bytes.Buffer)
io.Copy(buf, f)

Expand Down