authorgravatar for lord@mzte.deLordMZTE <lord@mzte.de> 2022-07-01 16:39:18+02:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-07-27 18:17:07+03:00
logc6f5832bb61841d5be4f77adc38fbc4561bb5057
treeee6bafab009d21469f00ffb5185faef515fb061f
parent8c4896fb3a44d3b8025f66db7615483c30bed2b1

Module: fix inverted condition


1 files changed, 1 insertions(+), 1 deletions(-)

src/Module.zig+1-1
...@@ -4697,7 +4697,7 @@ pub fn importFile(...@@ -4697,7 +4697,7 @@ pub fn importFile(
4697 if (!mem.startsWith(u8, resolved_path, resolved_root_path) or4697 if (!mem.startsWith(u8, resolved_path, resolved_root_path) or
4698 // This prevents this check from triggering when the name of the4698 // This prevents this check from triggering when the name of the
4699 // imported file starts with the root path's directory name.4699 // imported file starts with the root path's directory name.
4700 std.fs.path.isSep(resolved_path[resolved_root_path.len]))4700 !std.fs.path.isSep(resolved_path[resolved_root_path.len]))
4701 {4701 {
4702 return error.ImportOutsidePkgPath;4702 return error.ImportOutsidePkgPath;
4703 }4703 }