mirror of
https://github.com/unpoller/unpoller.git
synced 2026-09-30 03:21:28 +02:00
Merge pull request #473 from unpoller/datadog-output-npe-3
bugfix: datadog NPE
This commit is contained in:
@@ -194,7 +194,10 @@ func (u *DatadogUnifi) Enabled() bool {
|
||||
if u == nil {
|
||||
return false
|
||||
}
|
||||
if u.Enable == nil || u.Config == nil {
|
||||
if u.Config == nil {
|
||||
return false
|
||||
}
|
||||
if u.Enable == nil {
|
||||
return false
|
||||
}
|
||||
return *u.Enable
|
||||
|
||||
Reference in New Issue
Block a user