Commit 5040970
committed
fix: remove unnecessary "await" in
Fixes a small bug where we had an `await` call on a function
that doesn't return a `Promise`.
Technically this is fine, because Node will basically
"promisify" the value, but it isn't necessary and creates
some extra work for the runtime. Specifically, in this
situation, Node will wrap the value in a Promise implicitly
and pause execution of the surrounding `async` function to
queue up that Promise for resolution.
So removing it is semantically equivalent, but improves
runtime behavior by eliminating this extra work.
Signed-off-by: Andrew Lilley Brinker <abrinker@mitre.org>baseUserRepository.js
1 parent 330cc61 commit 5040970
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
0 commit comments