Micro refactoring sigintHandlersWrap method
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included - [] documentation is changed or added
-
commit message follows commit guidelines
Affected core subsystem(s)
vm
Description of change
- Removing extra if and else and use ternary operator instead
- Avoid reassigning of
sigintListeners
variable - Extract new
asArray
function to handle transformation ofsigintListeners
to array