From da14c23e25d0391606973cff42e1becff6582db6 Mon Sep 17 00:00:00 2001 From: zhumeisongsong Date: Tue, 17 Dec 2024 16:07:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20lint=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/aws-cognito.service.ts | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/libs/shared/infrastructure/aws-cognito/src/lib/aws-cognito.service.ts b/libs/shared/infrastructure/aws-cognito/src/lib/aws-cognito.service.ts index fed7c3c..7506882 100644 --- a/libs/shared/infrastructure/aws-cognito/src/lib/aws-cognito.service.ts +++ b/libs/shared/infrastructure/aws-cognito/src/lib/aws-cognito.service.ts @@ -33,11 +33,7 @@ export class AwsCognitoService { ], }; - try { - return await this.cognito.signUp(params).promise(); - } catch (error) { - throw error; - } + return await this.cognito.signUp(params).promise(); } async signIn( @@ -54,11 +50,7 @@ export class AwsCognitoService { }, }; - try { - return await this.cognito.initiateAuth(params).promise(); - } catch (error) { - throw error; - } + return await this.cognito.initiateAuth(params).promise(); } async refreshToken( @@ -73,11 +65,7 @@ export class AwsCognitoService { }, }; - try { - return await this.cognito.initiateAuth(params).promise(); - } catch (error) { - throw error; - } + return await this.cognito.initiateAuth(params).promise(); } async confirmSignUp(email: string, confirmationCode: string): Promise { @@ -88,10 +76,6 @@ export class AwsCognitoService { ConfirmationCode: confirmationCode, }; - try { - await this.cognito.confirmSignUp(params).promise(); - } catch (error) { - throw error; - } + await this.cognito.confirmSignUp(params).promise(); } }