about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/common-eval-args.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libexpr/common-eval-args.cc')
-rw-r--r--third_party/nix/src/libexpr/common-eval-args.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/common-eval-args.cc b/third_party/nix/src/libexpr/common-eval-args.cc
index 7af4d6b276db..7a87841c9b77 100644
--- a/third_party/nix/src/libexpr/common-eval-args.cc
+++ b/third_party/nix/src/libexpr/common-eval-args.cc
@@ -53,7 +53,8 @@ Path lookupFileArg(EvalState& state, string s) {
     CachedDownloadRequest request(s);
     request.unpack = true;
     return getDownloader()->downloadCached(state.store, request).path;
-  } else if (s.size() > 2 && s.at(0) == '<' && s.at(s.size() - 1) == '>') {
+  }
+  if (s.size() > 2 && s.at(0) == '<' && s.at(s.size() - 1) == '>') {
     Path p = s.substr(1, s.size() - 2);
     return state.findFile(p);
   } else {