provisioning: better variable naming

This commit is contained in:
bergquist 2018-02-12 08:22:34 +01:00
parent 84fea7c148
commit f01890c3ff

View File

@ -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)
} }
} }