| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b0df28d commit be4b3a4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -617,13 +617,9 @@ const win32 = { | |||
| 617 | 617 | */ | |
| 618 | 618 | toNamespacedPath(path) { | |
| 619 | 619 | // Note: this will *probably* throw somewhere. | |
| 620 | - if (typeof path !== 'string') | ||
| 620 | + if (typeof path !== 'string' || path.length === 0) | ||
| 621 | 621 | return path; | |
| 622 | 622 | ||
| 623 | - if (path.length === 0) { | ||
| 624 | - return ''; | ||
| 625 | - } | ||
| 626 | - | ||
| 627 | 623 | const resolvedPath = win32.resolve(path); | |
| 628 | 624 | ||
| 629 | 625 | if (resolvedPath.length <= 2) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments