Skip to content

Commit

Permalink
misc: remove linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
j4m3s-s committed Jan 5, 2022
1 parent 15db58d commit c95e0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ func main() {
if err != nil {
log.Fatalf("Error opening %v : %v\n", os.Args[1], err)
}
defer configFile.Close()

var config m.Config
decoder := yaml.NewDecoder(configFile)
err = decoder.Decode(&config)
if err != nil {
log.Fatalf("Error reading config : %v\n", err)
}
configFile.Close()

m.Configuration = config

Expand Down

0 comments on commit c95e0c7

Please sign in to comment.