mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
no cover some non-lfs lines
This commit is contained in:
parent
5edf945ca5
commit
d466a2e52c
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def lfs_files():
|
|||
(line[:3].strip(), line[3:].rpartition(' ')[0]) for line in lines
|
||||
]
|
||||
|
||||
def to_file_part(mode, filepart):
|
||||
def to_file_part(mode, filepart): # pragma: no cover (no git-lfs)
|
||||
assert mode in ('A', 'R')
|
||||
return filepart if mode == 'A' else filepart.split(' -> ')[1]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue