Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-codefresh committed Dec 15, 2024
1 parent 1358037 commit fed1b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sources_server_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ func (c *sourceServerClient) sendRequest(method, url string, payload interface{}
func (c *sourceServerClient) GetAppVersion(app *v1alpha1.Application) *AppVersionResult {
appVersionResult, err := c.sendRequest("POST", "/getAppVersion", app)
if err != nil {
log.Errorf("error getting app version: %w", err)
log.Errorf("error getting app version: %v", err)
return nil
}

var versionStruct AppVersionResult
err = json.Unmarshal(appVersionResult, &versionStruct)
if err != nil {
log.Errorf("error unmarshaling app version: %w", err)
log.Errorf("error unmarshaling app version: %v", err)
return nil
}

Expand Down

0 comments on commit fed1b91

Please sign in to comment.