vim/update.py: add dummy nixpkgs_repo to shutdown pyright warnings

This commit is contained in:
Matthieu Coudron 2022-02-17 11:51:16 +01:00
parent 48d63e924a
commit 9d9b5b321e

View file

@ -634,6 +634,7 @@ def update_plugins(editor: Editor, args):
autocommit = not args.no_commit
nixpkgs_repo = None
if autocommit:
nixpkgs_repo = git.Repo(editor.root, search_parent_directories=True)
commit(nixpkgs_repo, f"{editor.attr_path}: update", [args.outfile])