Commit 4d3a44bf authored by Björn Bartels's avatar Björn Bartels 👩🏻
Browse files

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

parent 0ec8004c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
			
		}