Saggi Mizrahi has uploaded a new change for review. Change subject: stomp: Remove redundant code ......................................................................
stomp: Remove redundant code Change-Id: I7b9fb4b4b4c5286733f8f4435ec6dcea04f96233 Signed-off-by: Saggi Mizrahi <[email protected]> --- M lib/yajsonrpc/stomp.py 1 file changed, 4 insertions(+), 7 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/39/35939/1 diff --git a/lib/yajsonrpc/stomp.py b/lib/yajsonrpc/stomp.py index d99ed98..279aa24 100644 --- a/lib/yajsonrpc/stomp.py +++ b/lib/yajsonrpc/stomp.py @@ -253,15 +253,12 @@ if buf[cl] != "\0": raise RuntimeError("Frame end is missing \\0") - remainingBytes = 0 self._flush() - body = buf - self._write_buffer(body[cl + 1:]) - body = body[:cl] + self._write_buffer(buf[cl + 1:]) + body = buf[:cl] - if remainingBytes == 0: - self._tmpFrame.body = body - self._pushFrame() + self._tmpFrame.body = body + self._pushFrame() return True -- To view, visit http://gerrit.ovirt.org/35939 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7b9fb4b4b4c5286733f8f4435ec6dcea04f96233 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Saggi Mizrahi <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
