Skip to content

Commit

Permalink
mysql - upgrading xo to 0.60.0 (#1258)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray authored Dec 21, 2024
1 parent d0679e6 commit a1decaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"rimraf": "^6.0.1",
"ts-node": "^10.9.2",
"tsd": "^0.31.2",
"xo": "^0.59.3"
"xo": "^0.60.0"
},
"tsd": {
"directory": "test"
Expand Down
2 changes: 1 addition & 1 deletion packages/mysql/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class KeyvMysql extends EventEmitter implements KeyvStoreAdapter {

for (const key of keys) {
const rowIndex = rows.findIndex((row: {id: string}) => row.id === key);
results.push(rowIndex > -1 ? rows[rowIndex].value as StoredData<Value> : undefined);
results.push(rowIndex === -1 ? undefined : rows[rowIndex].value as StoredData<Value>);
}

return results;
Expand Down

0 comments on commit a1decaa

Please sign in to comment.