Skip to content

Commit 1e7e284

Browse files
committed
Fix typo & golint issue
1 parent 99027b4 commit 1e7e284

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

game_events.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,12 @@ func (p *Parser) handleGameEvent(ge *msg.CSVCMsg_GameEvent) {
267267
})
268268
} else {
269269
p.eventDispatcher.Dispatch(events.ParserWarnEvent{
270-
Message: "Player team swap game-event occured but player.Team == newTeam",
270+
Message: "Player team swap game-event occurred but player.Team == newTeam",
271271
})
272272
}
273273
} else {
274274
p.eventDispatcher.Dispatch(events.ParserWarnEvent{
275-
Message: "Player team swap game-event occured but player is nil",
275+
Message: "Player team swap game-event occurred but player is nil",
276276
})
277277
}
278278

@@ -433,9 +433,9 @@ func getAttackingWeapon(wep *common.Equipment, attacker *common.Player) *common.
433433
isSpecialWeapon := class == common.EqClassGrenade || (class == common.EqClassEquipment && wep.Weapon != common.EqKnife)
434434
if !isSpecialWeapon && attacker != nil && len(attacker.RawWeapons) > 0 {
435435
return attacker.ActiveWeapon()
436-
} else {
437-
return wep
438436
}
437+
438+
return wep
439439
}
440440

441441
func mapGameEventData(d *msg.CSVCMsg_GameEventListDescriptorT, e *msg.CSVCMsg_GameEvent) map[string]*msg.CSVCMsg_GameEventKeyT {

0 commit comments

Comments
 (0)