diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-24T01·08+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-24T01·08+0200 |
commit | 69befd33a9e3600c125803694fbac96053f943b0 (patch) | |
tree | 24e478bbc08fade03668b7094f6b0349319c2bc8 | |
parent | a5684e09d34deb5c380c736ce520c030eb14bfc6 (diff) |
Remove unnecessary call to forceStringNoCtx
-rw-r--r-- | src/libexpr/eval.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index ae29431578a7..29b3e3c828d9 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -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; } |