Skip to content

Commit

Permalink
sync: TeeStringIO write should return int
Browse files Browse the repository at this point in the history
Change-Id: I211776a493cad4b005c6e201833e9700def2feb9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390657
Reviewed-by: Mike Frysinger <[email protected]>
Commit-Queue: Daniel Kutik <[email protected]>
Tested-by: Daniel Kutik <[email protected]>
  • Loading branch information
danielkutik authored and LUCI committed Oct 24, 2023
1 parent 1fd5c4b commit b0430b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subcmds/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ def __init__(

def write(self, s: str) -> int:
"""Write to additional destination."""
super().write(s)
ret = super().write(s)
if self.io is not None:
self.io.write(s)
return ret


class Sync(Command, MirrorSafeCommand):
Expand Down

0 comments on commit b0430b5

Please sign in to comment.