Skip to content

Commit

Permalink
util: make isPath consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
wrvsrx authored and adisbladis committed Dec 2, 2024
1 parent 3177f82 commit 60b55f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/pip.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ lib.fix (self: {
#
# We also need to support stringly paths...
isPath = typeOf requirements == "path" || hasContext requirements;
path' =
if typeOf requirements == "path" then
requirements
else
/. + unsafeDiscardStringContext requirements;
path' = if isPath then requirements else /. + unsafeDiscardStringContext requirements;
root = dirOf path';

# Requirements without comments and no empty strings
Expand Down

0 comments on commit 60b55f8

Please sign in to comment.