diff --git a/src/drivers/gitlab.js b/src/drivers/gitlab.js index 0ecdb429e..bfe4b94dc 100644 --- a/src/drivers/gitlab.js +++ b/src/drivers/gitlab.js @@ -59,9 +59,7 @@ class Gitlab { }) ); - this.detectedBase = possibleBases.find( - (base) => base.constructor !== Error - ); + this.detectedBase = possibleBases.find((base) => typeof base === 'string'); if (!this.detectedBase) { if (possibleBases.length) throw possibleBases[0]; throw new Error('Invalid repository address');