Skip to content

Commit a47907e

Browse files
committed
Revert change to Path:joinpath
1 parent 46ee11a commit a47907e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lua/plenary/path.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,7 @@ function Path:_st_mode()
296296
end
297297

298298
function Path:joinpath(...)
299-
if string.char(self.filename:byte(-1)) == path.sep then
300-
return Path:new(self.filename:sub(0, -2), ...)
301-
else
302-
return Path:new(self.filename, ...)
303-
end
299+
return Path:new(self.filename, ...)
304300
end
305301

306302
function Path:absolute()

0 commit comments

Comments
 (0)