| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This enables the `no-unsafe-finally` eslint rule to make sure we have a proper control flow in try / catch.
| const output = execSync(`${whoamiPath} /priv`, { timout: 1000 }); | ||
| if (!output.includes('SeCreateSymbolicLinkPrivilege')) { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
Can be simplified to just this, I think?
return output.includes('SeCreateSymbolicLinkPrivilege');And then you don't need the return true a few lines below.
Sorry, something went wrong.
There was a problem hiding this comment.
Yepp, absolutely
Sorry, something went wrong.
Sorry, something went wrong.
This enables the `no-unsafe-finally` eslint rule to make sure we have a proper control flow in try / catch. PR-URL: nodejs#18745 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
There is another unsafe finally in v9.x, would you be willing to manually backport and fix it so we can review? |
Sorry, something went wrong.
|
Backported in #19244 that removed the other unsafe finally as well. |
Sorry, something went wrong.
This enables the `no-unsafe-finally` eslint rule to make sure we have a proper control flow in try / catch. PR-URL: nodejs#18745 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This enables the `no-unsafe-finally` eslint rule to make sure we have a proper control flow in try / catch. Backport-PR-URL: #19244 PR-URL: #18745 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This enables the `no-unsafe-finally` eslint rule to make sure we have a proper control flow in try / catch. PR-URL: nodejs#18745 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Backport requested for 8.x in #19244 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This enables the no-unsafe-finally eslint rule to make sure we
have a proper control flow in try / catch.
Checklist
Affected core subsystem(s)
tools