From 5123c5cf76caf3e9274f649d934d69dcedde87ec Mon Sep 17 00:00:00 2001 From: berlinger-rarents Date: Thu, 29 Sep 2016 10:55:14 +0200 Subject: [PATCH] remove redundant truth check --- src/Composer/Util/RemoteFilesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 48c7b3698..ce2437669 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -248,7 +248,7 @@ class RemoteFilesystem if (isset($options['bitbucket-token'])) { // First time be optimistic and do not use the token for a BitBucket download. - if (isset($this->bitBucketUrlsTriedWithoutAuth[$origFileUrl]) && $this->bitBucketUrlsTriedWithoutAuth[$origFileUrl]) { + if (isset($this->bitBucketUrlsTriedWithoutAuth[$origFileUrl])) { $fileUrl .= (false === strpos($fileUrl,'?') ? '?' : '&') . 'access_token=' . $options['bitbucket-token']; } else { $this->bitBucketUrlsTriedWithoutAuth[$origFileUrl] = true;