Skip to content

Commit 0aa8001

Browse files
committed
fix(cubejs-cli): eslint fixes
1 parent e366d44 commit 0aa8001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-cli/deploy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const cloudReq = (options) => {
1010
const { url, auth, ...restOptions } = options;
1111
const authorization = auth || process.env.CUBE_CLOUD_DEPLOY_AUTH;
1212
if (!authorization) {
13-
throw new (`CUBE_CLOUD_DEPLOY_AUTH isn't set`);
13+
throw new Error('CUBE_CLOUD_DEPLOY_AUTH isn\'t set');
1414
}
1515
const payload = jwt.decode(authorization);
1616
if (!payload.url || !payload.deploymentId) {
17-
throw new (`Malformed token: ${authorization}`);
17+
throw new Error(`Malformed token: ${authorization}`);
1818
}
1919
return rp({
2020
headers: {

0 commit comments

Comments
 (0)