From a4ad3c2146925e02d37de4115c2eacf3eaccb54b Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sun, 14 Jun 2015 10:13:18 +0200 Subject: [PATCH] Dropped obsolete condition The conditional a few lines above already checks for `bytesMax > 0` --- src/Composer/Util/RemoteFilesystem.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 65367dad1..6788182e5 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -326,11 +326,7 @@ class RemoteFilesystem case STREAM_NOTIFY_PROGRESS: if ($this->bytesMax > 0 && $this->progress) { - $progression = 0; - - if ($this->bytesMax > 0) { - $progression = round($bytesTransferred / $this->bytesMax * 100); - } + $progression = round($bytesTransferred / $this->bytesMax * 100); if ((0 === $progression % 5) && 100 !== $progression && $progression !== $this->lastProgress) { $this->lastProgress = $progression;