Module: fix inverted condition

This commit is contained in:
LordMZTE authored and Veikka Tuominen committed 2022-07-27 18:17:07 +03:00
1 parent 8c4896fb3a
commit c6f5832bb6
1 file changed
+1 -1
+1 -1
View File
@@ -4697,7 +4697,7 @@ pub fn importFile(
if (!mem.startsWith(u8, resolved_path, resolved_root_path) or
// This prevents this check from triggering when the name of the
// imported file starts with the root path's directory name.
std.fs.path.isSep(resolved_path[resolved_root_path.len]))
!std.fs.path.isSep(resolved_path[resolved_root_path.len]))
{
return error.ImportOutsidePkgPath;
}