From 73af6f7f3c82b54f8b81f69b4a3adfd4a0698f3f Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 12 Jun 2019 22:43:33 +0200 Subject: [PATCH] refactor: for/of --- lib/platform/git/storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/platform/git/storage.ts b/lib/platform/git/storage.ts index 95e23c9fb2..d50f72c2f2 100644 --- a/lib/platform/git/storage.ts +++ b/lib/platform/git/storage.ts @@ -463,11 +463,11 @@ function checkForPlatformFailure(err: Error) { 'The remote end hung up unexpectedly', 'access denied or repository not exported', ]; - platformErrorStrings.forEach(errorStr => { + for (const errorStr of platformErrorStrings) { if (err.message.includes(errorStr)) { throw new Error('platform-error'); } - }); + } } export default Storage; -- GitLab