Closed niekschoemaker closed 3 years ago
Added another commit related to linting issues a plugin noticed.
Using await on return values is unecessary as far as I know, unless it's in a try catch block it doesn't change the behavior whatso ever.
See: Difference between return await promise
and return promise
And the forEach vs map is syntactically more correct, and performance is a bit better.
This avoids unecessary memory usage, minor optimization but could add up with many guards and hot paths.