Skip to content

Commit

Permalink
not handling error correctly on login for file writing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Svihla committed Apr 1, 2021
1 parent 8bf0905 commit 5b0a6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func makeConf(confDir, confFile, content string) error {
if err != nil {
return fmt.Errorf("error writing file")
}
writer.Flush()
err = writer.Flush()
if err != nil {
return fmt.Errorf("error finishing file")
}
Expand Down

0 comments on commit 5b0a6f7

Please sign in to comment.