1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

Merge pull request #1614 from ThomasWaldmann/trivial-changes

trivial code optimization
This commit is contained in:
TW 2016-09-17 23:50:56 +02:00 committed by GitHub
commit eac439a65f

View file

@ -642,7 +642,7 @@ def process_file(self, path, st, cache, ignore_inode=False):
# Is it a hard link?
if st.st_nlink > 1:
source = self.hard_links.get((st.st_ino, st.st_dev))
if (st.st_ino, st.st_dev) in self.hard_links:
if source is not None:
item = self.stat_attrs(st, path)
item.update({b'path': safe_path, b'source': source})
self.add_item(item)