mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-22 05:09:10 +02:00
Merge pull request #1 from unpoller/platinummonkey-patch-1
fix nil pointer bug
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
language: go
|
||||
go:
|
||||
- 1.14.x
|
||||
- 1.15.x
|
||||
- 1.18.x
|
||||
before_install:
|
||||
# download super-linter: golangci-lint
|
||||
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
||||
script:
|
||||
- go test ./...
|
||||
- golangci-lint run --disable errcheck
|
||||
|
||||
@@ -198,9 +198,8 @@ func (u *DatadogUnifi) Run(c poller.Collect) error {
|
||||
u.LogErrorf("DataDog config is missing and is not disabled: Datadog output is disabled!")
|
||||
return nil
|
||||
}
|
||||
u.Logf("Datadog is configured.")
|
||||
|
||||
u.Collector = c
|
||||
u.Logf("Datadog is configured.")
|
||||
u.setConfigDefaults()
|
||||
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user