Переглянути джерело

Remove unreachable instructions

Bubka 3 роки тому
батько
коміт
ed3b718293
1 змінених файлів з 0 додано та 2 видалено
  1. 0 2
      app/Models/TwoFAccount.php

+ 0 - 2
app/Models/TwoFAccount.php

@@ -347,7 +347,6 @@ class TwoFAccount extends Model implements Sortable
                 $OtpDto->counter    = $this->counter = $counter + 1;
                 $OtpDto->counter    = $this->counter = $counter + 1;
 
 
             }
             }
-            else throw new UnsupportedOtpTypeException();
 
 
             Log::info(sprintf('New OTP generated for TwoFAccount #%s', $this->id));
             Log::info(sprintf('New OTP generated for TwoFAccount #%s', $this->id));
     
     
@@ -507,7 +506,6 @@ class TwoFAccount extends Model implements Sortable
                 
                 
                 default:
                 default:
                     throw new UnsupportedOtpTypeException();
                     throw new UnsupportedOtpTypeException();
-                    break;
             }
             }
 
 
             if ($this->service) $this->generator->setIssuer($this->service);
             if ($this->service) $this->generator->setIssuer($this->service);