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:
@@ -1166,13 +1166,8 @@ enum VAR_TYPES var_index = 0;
|
|||||||
}
|
}
|
||||||
else if (cnt == 0)
|
else if (cnt == 0)
|
||||||
{
|
{
|
||||||
if (!dll)
|
if (do_hook(SET_LIST, "set-error No such variable \"%s\"", var))
|
||||||
{
|
say("No such variable \"%s\"", var);
|
||||||
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user