Remove unnecessary call to forceStringNoCtx

This commit is contained in:
Eelco Dolstra 2013-10-24 03:08:34 +02:00
parent a5684e09d3
commit 69befd33a9
1 changed files with 1 additions and 1 deletions

View File

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