Skip to content

Commit

Permalink
refactor: remove some declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil committed May 12, 2024
1 parent 8ba573a commit f8767e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/myks/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ type YamlTemplatingTool interface {
}

func (a *Application) RenderAndSlice(yamlTemplatingTools []YamlTemplatingTool) error {
var lastStepOutputFile string
var err error
if lastStepOutputFile, err = a.Render(yamlTemplatingTools); err != nil {
lastStepOutputFile, err := a.Render(yamlTemplatingTools)
if err != nil {
log.Error().Str("env", a.e.Id).Err(err).Msg("Failed to render")
return err
}
Expand Down

0 comments on commit f8767e2

Please sign in to comment.