[refactor] Extract flags check to caller
authorVictor Shyba <victor.shyba@gmail.com>
Wed, 29 Jul 2015 16:30:41 +0000 (13:30 -0300)
committerVictor Shyba <victor.shyba@gmail.com>
Wed, 29 Jul 2015 16:30:41 +0000 (13:30 -0300)
commit2e911bd0c949b7f42824ed87c467b1ac0919224a
tree8574450309fccccca204042124bbef1a1a25ec99
parente47f4bcc0eb9c3d08c649adcb62b0325f439113e
[refactor] Extract flags check to caller

Checking was done inside of emit method. Doing on emit function at
a module level makes it cleaner with less lines inside of check.
src/leap/common/events/client.py