Skip to content

Commit

Permalink
Return from printing motd, if there is an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvrzna committed Jun 23, 2020
1 parent eac541f commit 1c6cde4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions motd.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func printMotd() {
defer file.Close()
if err != nil {
printDefaultMotd()
return
}
scan := bufio.NewScanner(file)
for scan.Scan() {
Expand Down

0 comments on commit 1c6cde4

Please sign in to comment.