Code polish and removal of unused var reported by lint

Merged Jan Rybar requested to merge jrybar/polkit:lint-unused-var-polish into master

Merge request reports