Skip to content

Commit 051976a

Browse files
Fix syntax and whitespaces
1 parent 8b9d680 commit 051976a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/commons/config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ const getRequiredOption = (options, optionName) => {
1919

2020
const getApiKey = ({ apiKey, token }) => {
2121
if (apiKey) return apiKey;
22-
2322
if (!token) throw new ReportPortalRequiredOptionError('apiKey');
24-
2523
console.warn(`Option 'token' is deprecated. Use 'apiKey' instead.`);
2624
return token;
27-
}
25+
};
2826

2927
const getClientConfig = (options) => {
3028
let calculatedOptions = options;

0 commit comments

Comments
 (0)