Skip to content

Commit

Permalink
fix: nil error log when destination refreshed (#1185)
Browse files Browse the repository at this point in the history
* fix: nil error log when destination refreshed
  • Loading branch information
BruceMacD authored Mar 15, 2022
1 parent 158bc9c commit ec73d52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ func refreshDestination(client *api.Client, local *localDetails) error {
},
}

_, err := client.UpdateDestination(request)
if _, err := client.UpdateDestination(request); err != nil {
return fmt.Errorf("error updating existing destination: %w", err)
}

return fmt.Errorf("error updating existing destination: %w", err)
return nil
}

0 comments on commit ec73d52

Please sign in to comment.