Skip to content

Commit

Permalink
fix: unnecessary exception throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 authored Dec 18, 2021
1 parent e57638e commit 0c61cb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ export const getProfilePicture = functions.https.onRequest(async (req, res) => {
console.error(err);
throw new functions.https.HttpsError("not-found", "image not found");
}
default:
throw new functions.https.HttpsError("invalid-argument", "invalid provider");
}
throw new functions.https.HttpsError("invalid-argument", "invalid provider");
});

export const getUserEmotes = functions.https.onCall(async (data, context) => {
Expand Down

0 comments on commit 0c61cb0

Please sign in to comment.