Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Palazzi <sysdadmin@m1k.cloud>
  • Loading branch information
ironashram committed Mar 16, 2024
1 parent 39b9ca6 commit 8151e65
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/argoaction/process_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,19 @@ var processFile = func(path string, gitOps internal.GitOperations, githubClient
return err
}

if newest != nil {
action.Infof("There is a newer %s version: %s\n", chart, newest)

if cfg.CreatePr {
err = handleNewVersion(chart, newest, path, gitOps, cfg, action, osw, githubClient)
if err != nil {
return err
}
} else {
action.Infof("Create PR is disabled, skipping PR creation for %s\n", chart)
}
} else {
action.Debugf("No newer version of %s is available\n", chart)
}
return nil
if newest != nil {
action.Infof("There is a newer %s version: %s\n", chart, newest)

if cfg.CreatePr {
err = handleNewVersion(chart, newest, path, gitOps, cfg, action, osw, githubClient)
if err != nil {
return err
}
} else {
action.Infof("Create PR is disabled, skipping PR creation for %s\n", chart)
}
} else {
action.Debugf("No newer version of %s is available\n", chart)
}
return nil
}

0 comments on commit 8151e65

Please sign in to comment.