Commit 090ea902 authored by Daniel Silverstone's avatar Daniel Silverstone
Browse files

plugins/source/git.py: Rationalised unused return values



The `assert_ref_in_track()` method's return value was never used so
rationalise it to never return a value.

Signed-off-by: default avatarDaniel Silverstone <daniel.silverstone@codethink.co.uk>
parent 99d0f463
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -343,13 +343,13 @@ class GitMirror(SourceFetcher):
                                              '--contains', self.ref],
                                             cwd=fullpath,)
        if branch:
            return True
            return
        else:
            _, tag = self.source.check_output([self.source.host_git, 'tag', '--list', track,
                                               '--contains', self.ref],
                                              cwd=fullpath,)
            if tag:
                return True
                return

        detail = "The ref provided for the element does not exist locally in the provided track branch / tag " + \
                 "'{}'.\nYou may wish to track the element to update the ref from '{}' ".format(track, track) + \