Skip to content

Commit

Permalink
chore: remove redundant err check
Browse files Browse the repository at this point in the history
  • Loading branch information
vdjagilev committed May 10, 2024
1 parent 3f0c983 commit e4dd00c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions formatter/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ func (w *MainWorkflow) Execute() (err error) {
// Getting new instance of formatter based on provided config
formatter := New(w.Config)

// This part usually should not happen
if formatter == nil {
return fmt.Errorf("no formatter is defined")
}

// Trying to read template content (read a file, or get default in case where no option was used)
templateContent, err := TemplateContent(formatter, w.Config)
if err != nil {
Expand Down

0 comments on commit e4dd00c

Please sign in to comment.