mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 08:16:59 -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
|
||||
var dashboardToDelete []int64
|
||||
for path, provisioningData := range provisionedDashboardRefs {
|
||||
_, existsInDatabase := filesFoundOnDisk[path]
|
||||
if !existsInDatabase {
|
||||
_, existsOnDisk := filesFoundOnDisk[path]
|
||||
if !existsOnDisk {
|
||||
dashboardToDelete = append(dashboardToDelete, provisioningData.DashboardId)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user