Browse Source

Don't return an empty object that would then be stored as the user, but (#650)

instead return null which is then easier to catch (as the code already
expects to receive)
master
Jarmo Isotalo 8 years ago
committed by Matheus Fernandes
parent
commit
499bba0324
  1. 3
      lib/user.js

3
lib/user.js

@ -44,7 +44,8 @@ async function get(
}
return json
} catch (err) {
return {}
console.error(err.stack)
return null
}
}

Loading…
Cancel
Save