-
Notifications
You must be signed in to change notification settings - Fork 38
fix: eslint errors #243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: eslint errors #243
Conversation
| const lib = 'NODETKTEST'; | ||
| const createLib = `CRTLIB LIB(${lib}) TYPE(*TEST) TEXT('Used to test Node.js toolkit')`; | ||
| const findLib = `SELECT SCHEMA_NAME FROM qsys2.sysschemas WHERE SCHEMA_NAME = '${lib}'`; | ||
| const dataQueue = 'TESTQ'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes
../nodejs-itoolkit/test/functional/checkObjectExists.js
4:7 error 'dataQueue' is assigned a value but never used no-unused-vars
5:7 error 'dataArea' is assigned a value but never used no-unused-vars
| // REST transport currently failing with 414 URI Too Long response code | ||
| // The requested URL's length exceeds the capacity limit for this server | ||
| describe('getInstalledProducts', () => { | ||
| // eslint-disable-next-line func-names |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this.
| if (error) { throw error; } | ||
|
|
||
| checkObjectExists(config, dqName2, '*DTAQ', (error) => { | ||
| if (error) { throw error; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes
../nodejs-itoolkit/test/functional/iDataQueueFunctional.js
37:52 error 'error' is already declared in the upper scope no-shadow
| xmlOutput += chunk.OUT151; | ||
| }); | ||
| done(null, xmlOutput); | ||
| return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes
../nodejs-itoolkit/lib/transports/idbTransport.js
104:11 error Unnecessary return statement no-useless-return
kadler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than the typo.
Fixes #242