Remove unused code branch in setcmd()
If cnt == 0, that implies that dll == NULL (if the list search returned an entry, it at least must match the prefix we're looking for).
This commit is contained in:
@@ -1165,15 +1165,10 @@ enum VAR_TYPES var_index = 0;
|
||||
set_var_value(var_index, args);
|
||||
}
|
||||
else if (cnt == 0)
|
||||
{
|
||||
if (!dll)
|
||||
{
|
||||
if (do_hook(SET_LIST, "set-error No such variable \"%s\"", var))
|
||||
say("No such variable \"%s\"", var);
|
||||
}
|
||||
else
|
||||
set_var_value_dll(dll, args);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (do_hook(SET_LIST, "set-error %s is ambiguous", var))
|
||||
|
||||
Reference in New Issue
Block a user