summaryrefslogtreecommitdiff
path: root/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'util.js')
-rw-r--r--util.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/util.js b/util.js
index dccd874..c33d7b7 100644
--- a/util.js
+++ b/util.js
@@ -145,9 +145,5 @@ module.exports.paginate = function* chunks(arr, pagesize) {
module.exports.ignForUser = async (name, user_token) => {
// "?" is not accepted as user input, but the default for empty args
if (name != "?") return name;
- try {
- return await api.getUser(user_token);
- } catch (err) {
- return undefined;
- }
+ return await api.getUser(user_token);
}