Skip to content

Commit b665692

Browse files
authored
fix lint errors
1 parent b15e583 commit b665692

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

pkg/demoinfocs/datatables.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ func (p *parser) bindNewPlayerPawnS2(pawnEntity st.Entity) {
480480
pl.EntityID = controllerEntity.ID()
481481
pl.IsConnected = true
482482
pl.IsBot = controllerEntity.PropertyValueMust("m_steamID").String() == "0"
483+
483484
if pl.IsBot {
484485
pl.Name = controllerEntity.PropertyValueMust("m_iszPlayerName").String()
485486
pl.IsUnknown = false

pkg/demoinfocs/game_events.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ func (geh gameEventHandler) flashBangDetonate(data map[string]*msg.CSVCMsg_GameE
520520
nadeEvent := geh.nadeEvent(data, common.EqFlash)
521521

522522
geh.gameState().lastFlash.player = nadeEvent.Thrower
523+
523524
if geh.parser.isSource2() && !geh.parser.disableMimicSource1GameEvents {
524525
geh.dispatch(events.FlashExplode{
525526
GrenadeEvent: nadeEvent,

pkg/demoinfocs/game_state.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,11 @@ func (ptcp participants) FindByPawnHandle(handle uint64) *common.Player {
425425
entityID := entityIDFromHandle(handle, ptcp.getIsSource2())
426426
for _, player := range ptcp.All() {
427427
pawnEntity := player.PlayerPawnEntity()
428+
428429
if pawnEntity == nil {
429430
continue
430431
}
432+
431433
if pawnEntity.ID() == entityID {
432434
return player
433435
}

0 commit comments

Comments
 (0)