tools: use arrow function for callback in lint-sh.js · nodejs/node@d51e8ff · GitHub
Skip to content

Commit d51e8ff

Browse files
Trottdanielleadams
authored andcommitted
tools: use arrow function for callback in lint-sh.js
The function declaration inside an else block is odd (and violates a recommended ESLint rule). We tend to use arrow functions for callbacks anyway, so switch to that. PR-URL: #41256 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 1523aa5 commit d51e8ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/lint-sh.js

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)