aboutsummaryrefslogtreecommitdiff
path: root/lib/websocket/frames.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-08-11 16:36:45 +0700
committerShulhan <m.shulhan@gmail.com>2020-08-11 16:36:45 +0700
commit07e8370f158addf23591caa4e268e0fdd0992b44 (patch)
treefad1cca37969f6c0aa01811d8fdf4c4a5b96e349 /lib/websocket/frames.go
parent7a6afab5cbd0a02402309fed0ff021d6f9143427 (diff)
downloadpakakeh.go-07e8370f158addf23591caa4e268e0fdd0992b44.tar.xz
websocket: reformat some files
Diffstat (limited to 'lib/websocket/frames.go')
-rw-r--r--lib/websocket/frames.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/websocket/frames.go b/lib/websocket/frames.go
index 6240776c..0cb6a182 100644
--- a/lib/websocket/frames.go
+++ b/lib/websocket/frames.go
@@ -68,7 +68,8 @@ func (frames *Frames) fin(last *Frame) (frame *Frame) {
}
// Ignore control PING or PONG frame.
- if frames.v[x].opcode == OpcodePing || frames.v[x].opcode == OpcodePong {
+ if frames.v[x].opcode == OpcodePing ||
+ frames.v[x].opcode == OpcodePong {
continue
}
@@ -129,7 +130,8 @@ func (frames *Frames) payload() (payload []byte) {
}
// Ignore control PING or PONG frame.
- if frames.v[x].opcode == OpcodePing || frames.v[x].opcode == OpcodePong {
+ if frames.v[x].opcode == OpcodePing ||
+ frames.v[x].opcode == OpcodePong {
continue
}