Skip to content

Commit

Permalink
apache#87 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tianxiaoliang committed Feb 6, 2020
1 parent e5c31e1 commit 94360b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- bash scripts/travis/goConstChecker.sh
- stage: GoLint Checker
script:
- go get -u golang.org/x/lint
- go get -u golang.org/x/lint/golint
- bash scripts/travis/goLintChecker.sh
- stage: GoCyclo Checker
script:
Expand Down
2 changes: 1 addition & 1 deletion server/handler/noop_auth_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func newDomainResolver() handler.Handler {
return &NoopAuthHandler{}
}

//Display is handler name
//Name is handler name
func (bk *NoopAuthHandler) Name() string {
return "auth-handler"
}
Expand Down
1 change: 1 addition & 0 deletions server/service/mongo/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func GetDB() *mongo.Database {
return db
}

//CreateView run mongo db command to create view
func CreateView(ctx context.Context, view, source string, pipeline mongo.Pipeline) error {
sr := GetDB().RunCommand(ctx,
bson.D{
Expand Down

0 comments on commit 94360b5

Please sign in to comment.