Skip to content

Commit

Permalink
Merge pull request #25 from microlinkhq/next
Browse files Browse the repository at this point in the history
refactor: rewrite to support node12
  • Loading branch information
Kikobeats committed Jun 20, 2022
2 parents e93ef18 + 82cbccb commit 10cdc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class KeyvS3 extends EventEmitter {
super()
this.Bucket = namespace
this.ttl = ttl
this.hostname = hostname ?? namespace
this.s3client = s3client ?? new S3Client(opts)
this.hostname = hostname != null ? hostname : namespace
this.s3client = s3client != null ? s3client : new S3Client(opts)
this.got =
got ??
require('got').extend({
Expand Down

0 comments on commit 10cdc23

Please sign in to comment.