Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc0cc515 authored by Ronak Patel's avatar Ronak Patel
Browse files

Removed nested try-catch

parent 9023fa24
Loading
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -156,11 +156,7 @@ class AccountController extends Controller {
			$this->session->remove(self::SESSION_USERNAME_CHECK);
			$this->session->remove(self::CAPTCHA_VERIFIED_CHECK);

			try {
			$this->userService->addUsernameToCommonDataStore($username);
			} catch (Exception $e) {
				$this->logger->logException($e, ['app' => Application::APP_ID]);
			}
			$response->setStatus(200);
			$response->setData(['success' => true]);