mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
provisioning: better variable naming
This commit is contained in:
parent
84fea7c148
commit
f01890c3ff
@ -108,8 +108,8 @@ func (fr *fileReader) startWalkingDisk() error {
|
|||||||
// find dashboards to delete since json file is missing
|
// find dashboards to delete since json file is missing
|
||||||
var dashboardToDelete []int64
|
var dashboardToDelete []int64
|
||||||
for path, provisioningData := range provisionedDashboardRefs {
|
for path, provisioningData := range provisionedDashboardRefs {
|
||||||
_, existsInDatabase := filesFoundOnDisk[path]
|
_, existsOnDisk := filesFoundOnDisk[path]
|
||||||
if !existsInDatabase {
|
if !existsOnDisk {
|
||||||
dashboardToDelete = append(dashboardToDelete, provisioningData.DashboardId)
|
dashboardToDelete = append(dashboardToDelete, provisioningData.DashboardId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user