Skip to content

Commit

Permalink
chore: remove superfluous newline after some log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
brchri committed Oct 16, 2023
1 parent b9cd01a commit 5f197ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/geo/geo.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func setGarageDoor(config util.ConfigStruct, deviceSerial string, action string)
myqExec.SetUsername(config.Global.MyQEmail)
myqExec.SetPassword(config.Global.MyQPass)
if err := myqExec.Login(); err != nil {
logger.Infof("ERROR: %v\n", err)
logger.Infof("ERROR: %v", err)
return err
}
logger.Info("Session acquired...")
Expand All @@ -290,7 +290,7 @@ func setGarageDoor(config util.ConfigStruct, deviceSerial string, action string)
return nil
}

logger.Infof("Waiting for door to %s...\n", action)
logger.Infof("Waiting for door to %s...", action)

var currentState string
deadline := time.Now().Add(60 * time.Second)
Expand All @@ -301,7 +301,7 @@ func setGarageDoor(config util.ConfigStruct, deviceSerial string, action string)
}
if state != currentState {
if currentState != "" {
logger.Infof("Door state changed to %s\n", state)
logger.Infof("Door state changed to %s", state)
}
currentState = state
}
Expand All @@ -325,7 +325,7 @@ func GetGarageDoorSerials(config util.ConfigStruct) error {

logger.Info("Acquiring MyQ session...")
if err := s.Login(); err != nil {
logger.Errorf("ERROR: %v\n", err)
logger.Errorf("ERROR: %v", err)
return err
}
logger.Info("Session acquired...")
Expand Down

0 comments on commit 5f197ca

Please sign in to comment.