Merge pull request #1 from unpoller/platinummonkey-patch-1
fix nil pointer bug
This commit is contained in:
commit
8902b7ad9d
|
|
@ -1,10 +1,9 @@
|
||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.14.x
|
- 1.14.x
|
||||||
- 1.15.x
|
- 1.18.x
|
||||||
before_install:
|
before_install:
|
||||||
# download super-linter: golangci-lint
|
# 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
|
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
|
||||||
script:
|
script:
|
||||||
- go test ./...
|
- 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!")
|
u.LogErrorf("DataDog config is missing and is not disabled: Datadog output is disabled!")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
u.Logf("Datadog is configured.")
|
|
||||||
|
|
||||||
u.Collector = c
|
u.Collector = c
|
||||||
|
u.Logf("Datadog is configured.")
|
||||||
u.setConfigDefaults()
|
u.setConfigDefaults()
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue