Skip to content

Commit 1c73b39

Browse files
committed
chore(hydrator): Apply Go linter formatting
Run gofumpt to correct code formatting issues in the hydrator logic, as identified by the CI linter. Signed-off-by: sangyeong01 <[email protected]>
1 parent 3bdd9cc commit 1c73b39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

controller/hydrator/hydrator.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (h *Hydrator) ProcessHydrationQueueItem(hydrationKey types.HydrationQueueKe
170170
logCtx = logCtx.WithFields(applog.GetAppLogFields(app))
171171
logCtx.Errorf("Failed to hydrate app: %v", err)
172172
}
173-
return
173+
return processNext
174174
}
175175
logCtx.WithField("appCount", len(relevantApps)).Debug("Successfully hydrated apps")
176176
finishedAt := metav1.Now()
@@ -198,7 +198,7 @@ func (h *Hydrator) ProcessHydrationQueueItem(hydrationKey types.HydrationQueueKe
198198
logCtx.WithField("app", app.QualifiedName()).WithError(err).Error("Failed to request app refresh after hydration")
199199
}
200200
}
201-
return
201+
return processNext
202202
}
203203

204204
func (h *Hydrator) hydrateAppsLatestCommit(logCtx *log.Entry, hydrationKey types.HydrationQueueKey) ([]*appv1.Application, string, string, error) {
@@ -286,9 +286,9 @@ func (h *Hydrator) hydrate(logCtx *log.Entry, apps []*appv1.Application) (string
286286
RepoURL: app.Spec.SourceHydrator.DrySource.RepoURL,
287287
Path: app.Spec.SourceHydrator.DrySource.Path,
288288
TargetRevision: app.Spec.SourceHydrator.DrySource.TargetRevision,
289-
Helm: app.Spec.SourceHydrator.DrySource.Helm,
290-
Kustomize: app.Spec.SourceHydrator.DrySource.Kustomize,
291-
Directory: app.Spec.SourceHydrator.DrySource.Directory,
289+
Helm: app.Spec.SourceHydrator.DrySource.Helm,
290+
Kustomize: app.Spec.SourceHydrator.DrySource.Kustomize,
291+
Directory: app.Spec.SourceHydrator.DrySource.Directory,
292292
}
293293
if targetRevision == "" {
294294
targetRevision = app.Spec.SourceHydrator.DrySource.TargetRevision

0 commit comments

Comments
 (0)