Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Fix return statement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed May 13, 2019
1 parent 16080bd commit 2631c74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rest/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const updateApiKeyForUser = async (
},
locals
);
return;
}
throw new Error(ErrorCode.INSUFFICIENT_PERMISSION);
};
Expand Down Expand Up @@ -216,6 +217,7 @@ export const deleteApiKeyForUser = async (
},
locals
);
return;
}
throw new Error(ErrorCode.INSUFFICIENT_PERMISSION);
};

0 comments on commit 2631c74

Please sign in to comment.