Remove unnecessary call to forceStringNoCtx

This commit is contained in:
Eelco Dolstra 2013-10-24 03:08:34 +02:00
parent a5684e09d3
commit 69befd33a9

View file

@ -1083,7 +1083,7 @@ bool EvalState::isDerivation(Value & v)
if (i == v.attrs->end()) return false; if (i == v.attrs->end()) return false;
forceValue(*i->value); forceValue(*i->value);
if (i->value->type != tString) return false; if (i->value->type != tString) return false;
return forceStringNoCtx(*i->value) == "derivation"; return strcmp(i->value->string.s, "derivation") == 0;
} }