Skip to content

Commit e4dd00c

Browse files
committed
chore: remove redundant err check
1 parent 3f0c983 commit e4dd00c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

formatter/workflow.go

-5
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ func (w *MainWorkflow) Execute() (err error) {
8181
// Getting new instance of formatter based on provided config
8282
formatter := New(w.Config)
8383

84-
// This part usually should not happen
85-
if formatter == nil {
86-
return fmt.Errorf("no formatter is defined")
87-
}
88-
8984
// Trying to read template content (read a file, or get default in case where no option was used)
9085
templateContent, err := TemplateContent(formatter, w.Config)
9186
if err != nil {

0 commit comments

Comments
 (0)