Explorar o código

remove redundant truth check

berlinger-rarents %!s(int64=8) %!d(string=hai) anos
pai
achega
5123c5cf76
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 1
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;