Commit 4d3a44bf authored by Björn Bartels's avatar Björn Bartels

PATLAB-2 fixed identical sub-expressions on both sides of operator "&&"

parent 0ec8004c
......@@ -12,9 +12,10 @@ function moduleOrProcessPath ( file_or_dir ) {
relFile = path.join(relPath, file_or_dir);
if ( (moduleFile != cwdFile) ) {
if ( !fs.existsSync(cwdFile) && !fs.existsSync(cwdFile)) {
if ( !fs.existsSync(cwdFile) && !fs.existsSync(moduleFile)) {
// dindn't find in 'process' dir but found in 'module' dir
// dindn't find in 'project' dir but found in 'module' dir
// so we actually have a relative path
return (relFile);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment