Skip to content

Commit

Permalink
Don't ignore golint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
apostov committed Feb 13, 2018
1 parent 0805f59 commit f4acc4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ lint:

golint:
for pkg in ${PACKAGES}; do \
golint $$pkg; \
done;
golint -set_exit_status $$pkg || GOLINT_FAILED=1; \
done; \
[ -z "$$GOLINT_FAILED" ]

test:
TEST_FAILED= ; \
Expand Down
4 changes: 2 additions & 2 deletions v1/brokers/aws_sqs_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ func (e *ErrorSQS) DeleteMessage(*sqs.DeleteMessageInput) (*sqs.DeleteMessageOut

func init() {
redisURL := os.Getenv("REDIS_URL")
brokerUrl := "https://sqs.foo.amazonaws.com.cn"
brokerURL := "https://sqs.foo.amazonaws.com.cn"
TestConf = &config.Config{
Broker: brokerUrl,
Broker: brokerURL,
DefaultQueue: "test_queue",
ResultBackend: redisURL,
}
Expand Down
1 change: 1 addition & 0 deletions v1/brokers/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (b *Broker) stopConsuming() {
b.stopChan <- 1
}

// GetRegisteredTaskNames returns registered tasks names
func (b *Broker) GetRegisteredTaskNames() []string {
return b.registeredTaskNames
}
Expand Down

0 comments on commit f4acc4e

Please sign in to comment.