Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 29, 2022
1 parent 7b09b27 commit c36c964
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"prettier-standard": "latest",
"rimraf": "latest",
"simple-git-hooks": "latest",
"standard": "latest",
"ts-standard": "latest",
"turbo": "latest"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class Keyv extends EventEmitter {
_getKeyUnprefix (key) {
return this.namespace
? key
.split(':')
.splice(1)
.join(':')
.split(':')
.splice(1)
.join(':')
: key
}

Expand Down
6 changes: 3 additions & 3 deletions packages/sql/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class KeyvSql extends EventEmitter {
const upsert =
this.options.dialect === 'postgres'
? this.entry
.insert({ key, value })
.onConflict({ columns: ['key'], update: ['value'] })
.toString()
.insert({ key, value })
.onConflict({ columns: ['key'], update: ['value'] })
.toString()
: this.entry.replace({ key, value }).toString()
return this.query(upsert)
}
Expand Down

0 comments on commit c36c964

Please sign in to comment.