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: #279
Signed-off-by: Stanislav Levin <slev@altlinux.org>
  • Loading branch information
stanislavlevin authored and olivergs committed Mar 3, 2022
1 parent 1a46796 commit 1a40da2
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 1a40da2

Please sign in to comment.