Skip to content

Commit

Permalink
Replaced the changed_iter = changed_iter or ... statement with the ch…
Browse files Browse the repository at this point in the history
…anged_iter |= ... compound assignment operator for brevity
  • Loading branch information
kewlfft committed Jul 8, 2023
1 parent 2a076dc commit cbf843e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/aur.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def install_packages(module, packages, use, extra_args, state, skip_pgp_check, i
command.append(package)
rc, out, err = module.run_command(command, check_rc=True)

changed_iter = changed_iter or not (out == '' or 'up-to-date -- skipping' in out or 'nothing to do' in out.lower())
changed_iter |= not (out == '' or 'up-to-date -- skipping' in out or 'nothing to do' in out.lower())

message = 'installed package(s)' if changed_iter else 'package(s) already installed'

Expand Down

0 comments on commit cbf843e

Please sign in to comment.