Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
omer.hanci committed Mar 4, 2024
1 parent 3a756a0 commit 87f0af4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/monitor_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ func (m MonitorService) Upsert(filename string, deleteUntracked bool) ([]model.U
// Get Destinations
destinations, err := m.client.FetchDestinations()
if err != nil {
return nil, fmt.Errorf("%s: %v\n", "err while reading destinations", err)
return nil, fmt.Errorf("%s: %v", "err while reading destinations", err)
}

log.Info("Destinations fetched.")

// Get Remote Monitors
remoteMonitors, remoteMonitorSet, err := m.client.FetchMonitors()
if err != nil {
return nil, fmt.Errorf("%s: %v\n", "err while reading remote monitors", err)
return nil, fmt.Errorf("%s: %v", "err while reading remote monitors", err)
}

log.Info("Monitors fetched.")

// Get Local Monitors
localMonitors, localMonitorSet, err := m.reader.ReadLocalYaml(filename)
if err != nil {
return nil, fmt.Errorf("%s: %v\n", "err while reading local files", err)
return nil, fmt.Errorf("%s: %v", "err while reading local files", err)
}

log.Info("Local monitors read.")
Expand Down

0 comments on commit 87f0af4

Please sign in to comment.