From 3309aafa4631885a30969bf09a8e2ff839e5e2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Thu, 17 Aug 2017 22:18:24 +0200 Subject: [PATCH] feat: return early if there is no build matrix in the first place --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 5f78f34..21edd92 100644 --- a/index.js +++ b/index.js @@ -40,6 +40,7 @@ module.exports = async function travisDeployOnce (env = process.env) { if (!env.TRAVIS_JOB_NUMBER.endsWith(`.${buildLeader}`)) return null if (env.TRAVIS_TEST_RESULT === '1') return false + if (jobs.length === 1) return true const currentJobId = parseInt(env.TRAVIS_JOB_ID, 10) let attempt = 0