Remove unreachable instructions

This commit is contained in:
Bubka 2022-07-12 22:46:59 +02:00
parent d3bda8942b
commit ed3b718293

View File

@ -347,7 +347,6 @@ public function getOTP() : TotpDto|HotpDto
$OtpDto->counter = $this->counter = $counter + 1;
}
else throw new UnsupportedOtpTypeException();
Log::info(sprintf('New OTP generated for TwoFAccount #%s', $this->id));
@ -507,7 +506,6 @@ private function initGenerator()
default:
throw new UnsupportedOtpTypeException();
break;
}
if ($this->service) $this->generator->setIssuer($this->service);