| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cd0b136 commit 939f8e8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -673,12 +673,8 @@ const defaultRmdirOptions = { | |||
| 673 | 673 | }; | |
| 674 | 674 | ||
| 675 | 675 | const validateRmOptions = hideStackFrames((path, options, callback) => { | |
| 676 | - try { | ||
| 677 | - options = validateRmdirOptions(options, defaultRmOptions); | ||
| 678 | - validateBoolean(options.force, 'options.force'); | ||
| 679 | - } catch (err) { | ||
| 680 | - return callback(err); | ||
| 681 | - } | ||
| 676 | + options = validateRmdirOptions(options, defaultRmOptions); | ||
| 677 | + validateBoolean(options.force, 'options.force'); | ||
| 682 | 678 | ||
| 683 | 679 | lazyLoadFs().stat(path, (err, stats) => { | |
| 684 | 680 | if (err) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments