diff --git a/formatter/workflow.go b/formatter/workflow.go index b04dbca..2d4bc1c 100644 --- a/formatter/workflow.go +++ b/formatter/workflow.go @@ -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 {