refactor: minor code changes in karma AngularAssetsMiddleware#30115
Conversation
hybrist
left a comment
There was a problem hiding this comment.
This does now have the potential to call next multiple times in case of errors. But that might be okay..?
(The code invoked by next() may throw which then could get caught by this function and trigger a 2nd call to next().)
Yes, that should be fine though, what was the intent of the try/catch was it to catch error from |
That's a good point! Since this entirely synchronous, we could likely depend on the framework to catch errors and remove the try/catch. |
This comment was marked as spam.
This comment was marked as spam.
Early exits and reduce optional chaining.
004822f to
22c7796
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Early exits and reduce optional chaining.