From ebf78132d759014df1c4f492bf65e9c16895e3c5 Mon Sep 17 00:00:00 2001
From: filecage <mail@dbeuchert.com>
Date: Mon, 11 Mar 2019 23:28:20 +0100
Subject: [PATCH] `refreshTokenRepository` parameter can not be null, condition
 is obsolete

---
 src/Grant/PasswordGrant.php | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/Grant/PasswordGrant.php b/src/Grant/PasswordGrant.php
index 6dc08958..124bb4f8 100644
--- a/src/Grant/PasswordGrant.php
+++ b/src/Grant/PasswordGrant.php
@@ -35,10 +35,7 @@ class PasswordGrant extends AbstractGrant
         RefreshTokenRepositoryInterface $refreshTokenRepository
     ) {
         $this->setUserRepository($userRepository);
-
-        if ($refreshTokenRepository !== null) {
-            $this->setRefreshTokenRepository($refreshTokenRepository);
-        }
+        $this->setRefreshTokenRepository($refreshTokenRepository);
 
         $this->refreshTokenTTL = new DateInterval('P1M');
     }