Skip to content

Commit c4fa251

Browse files
committed
some linting fixes
1 parent fbb6b2f commit c4fa251

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

pkg/demoinfocs/common/inferno_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ func TestInferno_UniqueID(t *testing.T) {
1616
assert.NotEqual(t, NewInferno(nil, entity).UniqueID(), NewInferno(nil, entity).UniqueID(), "UniqueIDs of different infernos should be different")
1717
}
1818

19-
// FIXME: Inferno.Fires test
20-
21-
func TestInferno_Active(t *testing.T) {
19+
func TestFires_Active(t *testing.T) {
2220
inf := Fires{
2321
s: []Fire{
2422
{

pkg/demoinfocs/common/player.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ func (p *Player) IsSpottedBy(other *Player) bool {
148148
return false
149149
}
150150

151-
// TODO extract ClientSlot() function
152151
clientSlot := other.EntityID - 1
153152
bit := uint(clientSlot)
154153

pkg/demoinfocs/sendtables/st_parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (p *SendTableParser) SetInstanceBaseline(scID int, data []byte) {
303303
// ReadEnterPVS reads an entity entering the PVS (potentially visible system).
304304
//
305305
// Intended for internal use only.
306-
func (p *SendTableParser) ReadEnterPVS(r *bit.BitReader, entityID int) *entity {
306+
func (p *SendTableParser) ReadEnterPVS(r *bit.BitReader, entityID int) Entity {
307307
scID := int(r.ReadInt(p.classBits()))
308308

309309
const nSerialNumberBits = 10

0 commit comments

Comments
 (0)