Skip to content

Commit

Permalink
fix: 🐛 lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Dec 17, 2024
1 parent 18531a9 commit da14c23
Showing 1 changed file with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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<void> {
Expand All @@ -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();
}
}

0 comments on commit da14c23

Please sign in to comment.