Skip to content

Commit

Permalink
Fix pluralization of flags in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Boelensman1 committed Apr 19, 2021
1 parent 3f51a40 commit ace7834
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/dialects/sqlite3/index.js
Expand Up @@ -69,11 +69,11 @@ class Client_SQLite3 extends Client {
if (!Array.isArray(this.connectionSettings.flags)) {
throw new Error(`flags must be an array of strings`);
}
this.connectionSettings.flags.forEach((_flags) => {
if (!_flags.startsWith('OPEN_') || !this.driver[_flags]) {
throw new Error(`flags ${_flags} not supported by node-sqlite3`);
this.connectionSettings.flags.forEach((_flag) => {
if (!_flag.startsWith('OPEN_') || !this.driver[_flag]) {
throw new Error(`flag ${_flag} not supported by node-sqlite3`);
}
flags = flags | this.driver[_flags];
flags = flags | this.driver[_flag];
});
}

Expand Down

0 comments on commit ace7834

Please sign in to comment.