From c33b80592fcb6c6cdabcea143612d88db0711c5a Mon Sep 17 00:00:00 2001 From: Yusuf Kanchwala Date: Thu, 13 Aug 2020 19:58:10 +0530 Subject: [PATCH] fix static check errors --- pkg/runtime/validate.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/runtime/validate.go b/pkg/runtime/validate.go index 2a9c1ec37..63de4837e 100644 --- a/pkg/runtime/validate.go +++ b/pkg/runtime/validate.go @@ -27,11 +27,10 @@ import ( ) var ( - errEmptyIacPath = fmt.Errorf("empty iac path, either use '-f' or '-d' option") - errIncorrectIacPath = fmt.Errorf("cannot accept both '-f' and '-d' options together") - errDirNotExists = fmt.Errorf("directory does not exist") - errFileNotExists = fmt.Errorf("file does not exist") - errIacNotSupported = fmt.Errorf("iac type or version not supported") + errEmptyIacPath = fmt.Errorf("empty iac path, either use '-f' or '-d' option") + errDirNotExists = fmt.Errorf("directory does not exist") + errFileNotExists = fmt.Errorf("file does not exist") + errIacNotSupported = fmt.Errorf("iac type or version not supported") ) // ValidateInputs validates the inputs to the executor object