Skip to content

Commit

Permalink
Use more nullish coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 12, 2020
1 parent 18d8457 commit a1fe3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/old-unit/support/OfflineBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { splitHandlerPathAndName } from '../../../src/utils/index.js'
export default class OfflineBuilder {
constructor(serverlessBuilder, options) {
this.handlers = {}
this.options = options || {}
this.serverlessBuilder = serverlessBuilder || new ServerlessBuilder()
this.options = options ?? {}
this.serverlessBuilder = serverlessBuilder ?? new ServerlessBuilder()
}

addFunctionConfig(functionKey, functionConfig, handler) {
Expand Down

0 comments on commit a1fe3f0

Please sign in to comment.