Move the logic determining the return value of SendEvent() into its own function instead of repeating it twice. No real changes, this is a pure refactoring.
Move the logic determining the return value of SendEvent() into its own function instead of repeating it twice. No real changes, this is a pure refactoring.