Skip to content

Conversation

@abmusse
Copy link
Member

@abmusse abmusse commented Apr 8, 2020

Fixes #242

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';
Copy link
Member Author

@abmusse abmusse Apr 8, 2020

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
Copy link
Member Author

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; }
Copy link
Member Author

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;
Copy link
Member Author

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

@abmusse abmusse requested a review from kadler April 8, 2020 20:59
Copy link
Member

@kadler kadler left a 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.

@kadler kadler merged commit df40eb0 into master Apr 17, 2020
@kadler kadler deleted the fixup-lint-errors branch April 17, 2020 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: eslint errors

3 participants