From e4ff7a9b6537985e8272b88c08698991f25a4013 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 11 Jun 2021 16:06:48 +0300 Subject: Remove redundant frame to byte casting Signed-off-by: Valery Piashchynski --- pkg/worker/sync_worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/worker') diff --git a/pkg/worker/sync_worker.go b/pkg/worker/sync_worker.go index 3d049ba7..c41b5b52 100755 --- a/pkg/worker/sync_worker.go +++ b/pkg/worker/sync_worker.go @@ -171,7 +171,7 @@ func (tw *SyncWorkerImpl) execPayload(p payload.Payload) (payload.Payload, error flags := frameR.ReadFlags() - if flags&byte(frame.ERROR) != byte(0) { + if flags&frame.ERROR != byte(0) { return payload.Payload{}, errors.E(op, errors.SoftJob, errors.Str(string(frameR.Payload()))) } -- cgit v1.2.3