Refactor code to remove duplicate code and improve readability

This commit is contained in:
faris Aljohari
2024-06-02 15:21:07 +03:00
parent cc5e61a5f2
commit 42b849b3c5
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -303,8 +303,6 @@ export class UnitService {
type: updatedUnit.spaceType.type,
};
} catch (err) {
console.log('err', err);
if (err instanceof BadRequestException) {
throw err;
} else {