diff --git a/src/libexpr/paths.cc b/src/libexpr/paths.cc index 61c4d4100..e1c2740cb 100644 --- a/src/libexpr/paths.cc +++ b/src/libexpr/paths.cc @@ -40,7 +40,6 @@ SourcePath EvalState::decodePath(std::string_view s, PosIdx pos) try { auto slash = s.find('/'); - if (slash > 20) throw std::invalid_argument(""); size_t number = std::stoi(std::string(s.substr(0, slash)), nullptr, 16); s = slash == s.npos ? "" : s.substr(slash);