瀏覽代碼

remove redundant truth check

berlinger-rarents 8 年之前
父節點
當前提交
5123c5cf76
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;