Skip to content

Commit

Permalink
Fix syntax and whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-ligios authored Sep 12, 2023
1 parent 8b9d680 commit 051976a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/commons/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ const getRequiredOption = (options, optionName) => {

const getApiKey = ({ apiKey, token }) => {
if (apiKey) return apiKey;

Check failure on line 21 in lib/commons/config.js

View workflow job for this annotation

GitHub Actions / test (16)

Delete `··`

Check failure on line 21 in lib/commons/config.js

View workflow job for this annotation

GitHub Actions / test (18)

Delete `··`

Check failure on line 21 in lib/commons/config.js

View workflow job for this annotation

GitHub Actions / test (20)

Delete `··`

if (!token) throw new ReportPortalRequiredOptionError('apiKey');

console.warn(`Option 'token' is deprecated. Use 'apiKey' instead.`);

Check warning on line 23 in lib/commons/config.js

View workflow job for this annotation

GitHub Actions / test (16)

Unexpected console statement

Check warning on line 23 in lib/commons/config.js

View workflow job for this annotation

GitHub Actions / test (18)

Unexpected console statement

Check warning on line 23 in lib/commons/config.js

View workflow job for this annotation

GitHub Actions / test (20)

Unexpected console statement
return token;
}
};

const getClientConfig = (options) => {
let calculatedOptions = options;
Expand Down

0 comments on commit 051976a

Please sign in to comment.