Skip to content

Commit 7b5c9ac

Browse files
committed
fix: lint
1 parent d8b190b commit 7b5c9ac

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/configuration/read.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const parseConfigurationFile = async (configurationPath) => {
6767
} catch (error) {
6868
throw new ServerlessError(
6969
`Cannot parse "${path.basename(configurationPath)}": Initialization error: ${
70-
error?.stack ? error.stack : error
70+
error && error.stack ? error.stack : error
7171
}`,
7272
'CONFIGURATION_INITIALIZATION_ERROR'
7373
);

test/unit/lib/configuration/read.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const { expect } = chai;
77

88
const fsp = require('fs').promises;
99
const fse = require('fs-extra');
10-
const proxyquire = require('proxyquire');
1110
const readConfiguration = require('../../../../lib/configuration/read');
1211

1312
describe('test/unit/lib/configuration/read.test.js', () => {

0 commit comments

Comments
 (0)