core: do not use formatted error if not needed
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
165525b7e9
commit
8253025c90
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue