mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
avoid exporting notificationState and notificationStateSlice
This commit is contained in:
@@ -30,14 +30,14 @@ type Notifier interface {
|
||||
GetFrequency() time.Duration
|
||||
}
|
||||
|
||||
type NotifierState struct {
|
||||
type notifierState struct {
|
||||
notifier Notifier
|
||||
state *models.AlertNotificationState
|
||||
}
|
||||
|
||||
type NotifierStateSlice []*NotifierState
|
||||
type notifierStateSlice []*notifierState
|
||||
|
||||
func (notifiers NotifierStateSlice) ShouldUploadImage() bool {
|
||||
func (notifiers notifierStateSlice) ShouldUploadImage() bool {
|
||||
for _, ns := range notifiers {
|
||||
if ns.notifier.NeedsImage() {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user