Skip to content

Commit

Permalink
chore(check): remove duplicate check
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
  • Loading branch information
wzrdtales committed Jun 1, 2019
1 parent 3cb99a7 commit e360112
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ var PgDriver = Base.extend({
)
.then(
function (result) {
if (result && result && result.length < 1) {
if (result && result.length < 1) {
return this.createTable(this.internals.migrationTable, options);
} else {
return Promise.resolve();
Expand Down Expand Up @@ -278,7 +278,7 @@ var PgDriver = Base.extend({
return this.all('select version() as version')
.then(
function (result) {
if (result && result && result.length > 0 && result[0].version) {
if (result && result.length > 0 && result[0].version) {
var version = result[0].version;
var match = version.match(/\d+\.\d+\.\d+/);
if (match && match[0] && semver.gte(match[0], '9.1.0')) {
Expand Down Expand Up @@ -319,7 +319,7 @@ var PgDriver = Base.extend({
)
.then(
function (result) {
if (result && result && result.length < 1) {
if (result && result.length < 1) {
return this.createTable(this.internals.seedTable, options);
} else {
return Promise.resolve();
Expand Down

0 comments on commit e360112

Please sign in to comment.