Skip to content

Commit

Permalink
Use constant for invalidation key
Browse files Browse the repository at this point in the history
  • Loading branch information
F21 committed Mar 25, 2024
1 parent 8c21d7f commit 50cd14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (b *grafanaBackend) reset() {
}

func (b *grafanaBackend) invalidate(_ context.Context, key string) {
if key == "config" {
if key == configStoragePath {
b.reset()
}
}
Expand Down

0 comments on commit 50cd14e

Please sign in to comment.