Skip to content

Commit

Permalink
* [chore]: update linting configurations and dependencies across files
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Jul 19, 2024
1 parent 4d05e7b commit c7e61ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ tasks:
fmt:
cmds:
- task: swag
- task: gomod
- task: gencopyright
- task: gofmt
- task: golint
- task: lint

default:
cmds:
Expand Down
3 changes: 2 additions & 1 deletion example/testcases/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ package main
import (
"log"

"github.com/davecgh/go-spew/spew"
"github.com/easysoft/go-zentao/v20/zentao"

"github.com/davecgh/go-spew/spew"
)

func main() {
Expand Down
1 change: 0 additions & 1 deletion zentao/testcases.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ func (s *TestCasesService) GetByID(id int) (*TestCasesCreateMsg, *req.Response,
// GetByID 获取用例详情
func (s *TestCasesService) GetResultByID(id any) (*TestCasesResultResp, *req.Response, error) {
var u TestCasesResultResp
// 判断id的类型,如果是string,就是用例id,如果是int,就是结果id
if _, ok := id.(string); ok {
if strings.HasPrefix(id.(string), "case_") {
id = strings.TrimPrefix(id.(string), "case_")
Expand Down

0 comments on commit c7e61ac

Please sign in to comment.