Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrdsilva committed Aug 12, 2024
1 parent d56b71d commit b5f96a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export class AuthService {
async getUser(id: string) {
const user = await this.usersService.findById(id);

if (!user) {
if (!user) {
throw new NotFoundException('User not found');
}

const { password, ...userWithoutPassword } = user;
const { password, ...userWithoutPassword } = user;

return userWithoutPassword;
}
}
}

0 comments on commit b5f96a7

Please sign in to comment.