Skip to content

Commit

Permalink
fix sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarlett-Truong committed Jan 7, 2025
1 parent 5c62490 commit 9bec378
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/src/v1/officer/officer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export class OfficerService {
await queryRunner.startTransaction();
let newOfficerObject;
let personObject;
let teamObject;

try {
//Will always insert the person
Expand All @@ -173,10 +172,7 @@ export class OfficerService {
create_user_id: officer.create_user_id,
update_user_id: officer.update_user_id,
};
teamObject = await this.officerTeamXrefService.createInTransaction(
<CreateOfficerTeamXrefDto>teamEntity,
queryRunner,
);
await this.officerTeamXrefService.createInTransaction(<CreateOfficerTeamXrefDto>teamEntity, queryRunner);
}
await queryRunner.commitTransaction();

Expand Down

0 comments on commit 9bec378

Please sign in to comment.