Skip to content

Commit

Permalink
pylint: Fix use-list-literal
Browse files Browse the repository at this point in the history
Pylint 2.10 introduced new checker:
> Emitted when using list() to create an empty list instead of the
  literal []. The literal is faster as it avoids an additional function
  call.

See pylint-dev/pylint#4365

Fixes: fleet-commander#279
Signed-off-by: Stanislav Levin <slev@altlinux.org>
  • Loading branch information
stanislavlevin committed Feb 17, 2022
1 parent e29dd40 commit a6bcc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger/fleet_commander_logger.py
Expand Up @@ -1009,7 +1009,7 @@ def parse_bookmarks_tree(self, path, leaf):
if leaf["type"] == "url":
logger.debug("Parsing bookmarks leaf %s", leaf["name"])
return [json.dumps([path, leaf["id"], leaf["url"], leaf["name"]])]
return list()
return []

def get_modified_bookmarks(self, bmarks1, bmarks2):
diff = bmarks2[:]
Expand Down

0 comments on commit a6bcc46

Please sign in to comment.