From e4dd00c43930a37e141be37d87132bda49225028 Mon Sep 17 00:00:00 2001 From: Vsevolod Djagilev <2762286+vdjagilev@users.noreply.github.com> Date: Fri, 10 May 2024 22:29:35 +0300 Subject: [PATCH] chore: remove redundant err check --- formatter/workflow.go | 5 ----- 1 file changed, 5 deletions(-) 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 {