Skip to content

Commit

Permalink
fix: remove check. (#153)
Browse files Browse the repository at this point in the history
* fix:remove unused method.

* remove unused AppVersion

* remove.

* fix: remove check.
  • Loading branch information
mo3et authored Oct 28, 2024
1 parent 666e466 commit 73f1224
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions third/third.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package third

import (
"errors"

"github.com/openimsdk/protocol/constant"
)

Expand Down Expand Up @@ -59,23 +60,3 @@ func (x *CompleteFormDataReq) Check() error {
}
return nil
}

func (x *LatestApplicationVersionReq) Check() error {
if x.Platform == "" {
return errors.New("platform is empty")
}
return nil
}

func (x *PageApplicationVersionReq) Check() error {
if x.Pagination == nil {
return errors.New("pagination is empty")
}
if x.Pagination.PageNumber < 1 {
return errors.New("pageNumber is invalid")
}
if x.Pagination.ShowNumber < 1 {
return errors.New("showNumber is invalid")
}
return nil
}

0 comments on commit 73f1224

Please sign in to comment.