diff options
author | Valery Piashchynski <[email protected]> | 2021-06-11 16:06:48 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-11 16:06:48 +0300 |
commit | e4ff7a9b6537985e8272b88c08698991f25a4013 (patch) | |
tree | b331e90d3508fd8534ea91adb56bed4f0f070437 /internal | |
parent | 4c6a04f16399ab353d81d1820877b764ad2d20c5 (diff) |
Remove redundant frame to byte casting
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'internal')
-rwxr-xr-x | internal/protocol.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/protocol.go b/internal/protocol.go index 3257c1d9..a344a3c4 100755 --- a/internal/protocol.go +++ b/internal/protocol.go @@ -81,7 +81,7 @@ func FetchPID(rl relay.Relay) (int64, error) { flags := frameR.ReadFlags() - if flags&(byte(frame.CONTROL)) == 0 { + if flags&frame.CONTROL == 0 { return 0, errors.E(op, errors.Str("unexpected response, header is missing, no CONTROL flag")) } |