Skip to content

Commit

Permalink
swap out list() for square brackets. potentially faster.
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgreenaway authored and Megan Wilhite committed Apr 11, 2023
1 parent 04db92f commit 07cc1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ def _run_check(self, low_data):
)
if "cmd_opts_exclude" in low_data:
if not isinstance(low_data["cmd_opts_exclude"], list):
cmd_opts_exclude = list(low_data["cmd_opts_exclude"])
cmd_opts_exclude = [low_data["cmd_opts_exclude"]]
else:
cmd_opts_exclude = low_data["cmd_opts_exclude"]
else:
Expand Down

0 comments on commit 07cc1ca

Please sign in to comment.