Removed two unneeded rows

This commit is contained in:
Fabio Manganiello 2018-01-02 19:34:41 +01:00
parent 4a6accf483
commit 9220b23471

View file

@ -4,12 +4,9 @@ from . import Pusher
def main(args=sys.argv[1:]):
opts = Pusher.parse_build_args(args)
pusher = Pusher(config_file=opts.config, backend=opts.backend)
if opts.type == 'event':
delattr(opts, 'type')
print(opts.args)
pusher.send_event(target=opts.target, type=opts.event, **opts.args)
else:
pusher.send_request(target=opts.target, action=opts.action, timeout=opts.timeout, **opts.args)