Fix incorrect variable usage (err -> errNTP)

This commit is contained in:
Andrew Jackson
2019-04-18 10:23:19 +10:00
parent 071f4f68a8
commit c449568f6d

View File

@@ -120,7 +120,7 @@ func main() {
if bot.config.NTPClient.Level == 0 {
disable, errNTP := bot.config.DisableNTPCheck(os.Stdin)
if errNTP != nil {
log.Errorf("failed to disable ntp time check reason: %v", err)
log.Errorf("failed to disable ntp time check reason: %v", errNTP)
} else {
log.Info(disable)
}