Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Nov 6, 2024
1 parent 14c69df commit 6c04c3f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/src/ee/services/hsm/hsm-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ export const hsmServiceFactory = ({ hsmModule: { module, graphene } }: THsmServi

// Execute the callback and await its result (works for both sync and async)
const result = await callbackWithSession(session);

if (session) {
removeSession();
}
removeSession();

return result;
} finally {
Expand Down

0 comments on commit 6c04c3f

Please sign in to comment.