Commit e2bac20
committed
linting: fix missing type assertion checks (forcetypeassert)
priority.go:50:2: right hand must be only type assertion (forcetypeassert)
*fq = append(*fq, x.(*prioritizedFrame))
^
priority.go:104:2: type assertion must be checked (forcetypeassert)
frame := heap.Pop(q.queue).(*prioritizedFrame).frame
^
priority_test.go:66:6: type assertion must be checked (forcetypeassert)
if frame.(*spdy.DataFrame).StreamId != i {
^
priority_test.go:67:55: type assertion must be checked (forcetypeassert)
t.Fatalf("Wrong frame\nActual: %d\nExpecting: %d", frame.(*spdy.DataFrame).StreamId, i)
^
priority_test.go:89:6: type assertion must be checked (forcetypeassert)
if frame.(*spdy.DataFrame).StreamId != i {
^
priority_test.go:90:55: type assertion must be checked (forcetypeassert)
t.Fatalf("Wrong frame\nActual: %d\nExpecting: %d", frame.(*spdy.DataFrame).StreamId, i)
^
spdy_test.go:847:3: right hand must be only type assertion (forcetypeassert)
netconn, _, _ := w.(http.Hijacker).Hijack()
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>1 parent 66c6b01 commit e2bac20
3 files changed
Lines changed: 29 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
848 | 855 | | |
849 | 856 | | |
850 | 857 | | |
| |||
0 commit comments