mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
isFunctor: Simplify
This commit is contained in:
parent
8a87521636
commit
51cf4455b2
2 changed files with 6 additions and 11 deletions
|
@ -78,15 +78,4 @@ inline void EvalState::forceList(Value & v, const Pos & pos)
|
|||
throwTypeError("value is %1% while a list was expected, at %2%", v, pos);
|
||||
}
|
||||
|
||||
inline bool EvalState::isFunctor(Value& fun)
|
||||
{
|
||||
if (fun.type == tAttrs) {
|
||||
auto found = fun.attrs->find(sFunctor);
|
||||
if (found != fun.attrs->end()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue