From bf871760c6f602c345769a13085baec77370679e Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 12 Jul 2023 12:31:40 +0300 Subject: [PATCH] core: do not use formatted error if not needed Signed-off-by: Anna Shaleva --- pkg/core/transaction/witness_scope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/transaction/witness_scope.go b/pkg/core/transaction/witness_scope.go index c1cf2b7d8..5c60e983b 100644 --- a/pkg/core/transaction/witness_scope.go +++ b/pkg/core/transaction/witness_scope.go @@ -68,7 +68,7 @@ func ScopesFromString(s string) (WitnessScope, error) { return result, fmt.Errorf("invalid witness scope: %v", scopeStr) } if isGlobal && !(scope == Global) { - return result, fmt.Errorf("Global scope can not be combined with other scopes") + return result, errors.New("Global scope can not be combined with other scopes") } result |= scope if scope == Global {