Fix: "The opt variable is not used in the loop"
This commit is contained in:
@@ -140,7 +140,7 @@ class DiffTest(utils.BareRepoTestCase):
|
||||
|
||||
for opt in [pygit2.GIT_DIFF_IGNORE_WHITESPACE,
|
||||
pygit2.GIT_DIFF_IGNORE_WHITESPACE_EOL]:
|
||||
diff = commit_c.tree.diff(commit_d.tree, pygit2.GIT_DIFF_IGNORE_WHITESPACE)
|
||||
diff = commit_c.tree.diff(commit_d.tree, opt)
|
||||
self.assertTrue(diff is not None)
|
||||
self.assertEqual(0, len(diff.changes.get('hunks', list())))
|
||||
|
||||
|
Reference in New Issue
Block a user