Skip to content

Commit b53682a

Browse files
committed
feat - little code refactoring
1 parent 7fdc893 commit b53682a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/definitionGenerator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ class DefinitionGenerator {
273273
mergeExistingPaths() {
274274
const paths = this.serverless.service.custom.documentation.paths;
275275

276-
const origPaths = this.openAPI.paths || {};
277-
278276
if (paths) {
277+
const origPaths = this.openAPI.paths || {};
278+
279279
Object.assign(this.openAPI, { paths: { ...origPaths, ...paths } });
280280
}
281281
}

0 commit comments

Comments
 (0)