Commit b4efbed2 authored by pengjun's avatar pengjun

fix linter error

parent 14a2af66
...@@ -95,12 +95,12 @@ func (t *PokerBullType) CreateTx(action string, message json.RawMessage) (*types ...@@ -95,12 +95,12 @@ func (t *PokerBullType) CreateTx(action string, message json.RawMessage) (*types
return nil, types.ErrInvalidParam return nil, types.ErrInvalidParam
} }
return CreateRawPBQuitTx(&param) return CreateRawPBQuitTx(&param)
} else {
return nil, types.ErrNotSupport
} }
return nil, types.ErrNotSupport
} }
// CreateTx method // CreateRawPBStartTx method
func CreateRawPBStartTx(head *PBGameStart) (*types.Transaction, error) { func CreateRawPBStartTx(head *PBGameStart) (*types.Transaction, error) {
if head.PlayerNum > MaxPlayerNum { if head.PlayerNum > MaxPlayerNum {
return nil, errors.New("Player number should be maximum 5") return nil, errors.New("Player number should be maximum 5")
...@@ -117,7 +117,7 @@ func CreateRawPBStartTx(head *PBGameStart) (*types.Transaction, error) { ...@@ -117,7 +117,7 @@ func CreateRawPBStartTx(head *PBGameStart) (*types.Transaction, error) {
return tx, nil return tx, nil
} }
// CreateTx method // CreateRawPBContinueTx method
func CreateRawPBContinueTx(head *PBGameContinue) (*types.Transaction, error) { func CreateRawPBContinueTx(head *PBGameContinue) (*types.Transaction, error) {
val := &PBGameAction{ val := &PBGameAction{
Ty: PBGameActionContinue, Ty: PBGameActionContinue,
...@@ -130,7 +130,7 @@ func CreateRawPBContinueTx(head *PBGameContinue) (*types.Transaction, error) { ...@@ -130,7 +130,7 @@ func CreateRawPBContinueTx(head *PBGameContinue) (*types.Transaction, error) {
return tx, nil return tx, nil
} }
// CreateTx method // CreateRawPBQuitTx method
func CreateRawPBQuitTx(head *PBGameQuit) (*types.Transaction, error) { func CreateRawPBQuitTx(head *PBGameQuit) (*types.Transaction, error) {
val := &PBGameAction{ val := &PBGameAction{
Ty: PBGameActionQuit, Ty: PBGameActionQuit,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment