]> BookStack Code Mirror - bookstack/commitdiff
Revert "Added else clause"
authorJustin Stein <redacted>
Sat, 13 Oct 2018 21:31:29 +0000 (14:31 -0700)
committerJustin Stein <redacted>
Sat, 13 Oct 2018 21:31:29 +0000 (14:31 -0700)
This reverts commit 77d7f764f1321fda7a2731c8c7ef50cecdea1af8.

app/Auth/Access/SocialAuthService.php

index 0c26a29507baf6b8b96b463e03f2d372bdbf0c8c..024a1e736d11ddb76f97a43f86105337811e20cd 100644 (file)
@@ -55,9 +55,7 @@ class SocialAuthService
         if ($socialDriver == 'google') {
             return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect();
         }
-        else {
-            return $this->socialite->driver($driver)->redirect();
-        }
+        return $this->socialite->driver($driver)->redirect();
     }
 
     /**