Skip to content

Commit

Permalink
sip2: remove duplicate case from switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
boutros committed May 18, 2017
1 parent bd91c78 commit 0253670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sip2/sip.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (mf MessageFactory) NewMessage(t msgType) Message {
switch msg.typ {
case MsgReqStatus:
msg.AddField(Field{Type: FieldDateTimeSync, Value: time.Now().Format(DateLayout)})
case MsgReqStatus, MsgReqResend, MsgReqLogin, MsgRespStatus, MsgRespLogin:
case MsgReqResend, MsgReqLogin, MsgRespStatus, MsgRespLogin:
// No timestamp
case MsgReqCheckin:
msg.AddField(Field{Type: FieldReturnDate, Value: time.Now().Format(DateLayout)})
Expand Down

0 comments on commit 0253670

Please sign in to comment.