update variable name to be descriptive

This commit is contained in:
daposy 2019-10-16 23:12:23 -07:00
parent 481c0bdf74
commit ffa85b6537
1 changed files with 4 additions and 4 deletions

View File

@ -85,12 +85,12 @@ func (t *CleanTask) deleteGeneratedSceneFiles(scene *models.Scene) {
}
}
normalPath := instance.Paths.Scene.GetScreenshotPath(scene.Checksum)
exists, _ = utils.FileExists(normalPath)
screenshotPath := instance.Paths.Scene.GetScreenshotPath(scene.Checksum)
exists, _ = utils.FileExists(screenshotPath)
if exists {
err := os.Remove(normalPath)
err := os.Remove(screenshotPath)
if err != nil {
logger.Warnf("Could not delete file %s: %s", normalPath, err.Error())
logger.Warnf("Could not delete file %s: %s", screenshotPath, err.Error())
}
}