Skip to content

Commit

Permalink
Fix wrong variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Nov 23, 2024
1 parent b053133 commit a1df800
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ class PreviewViewModel {
val searchPath = project.basePath
statusText.value = "Searching images in $searchPath ..."
val reports = loadReports(project)
val useReports = reports.isEmpty()
val allPreviewImageFiles = if (useReports) {
val isReportEmpty = reports.isEmpty()
val allPreviewImageFiles = if (isReportEmpty) {
findImageFiles(project, classes, functions)
} else {
findImageFilesWithReports(classes, functions, reports)
Expand All @@ -207,7 +207,7 @@ class PreviewViewModel {
if (allPreviewImageFiles.isEmpty()) {
statusText.value = "No images found"
} else {
val reportOrFiles = if (useReports) "reports" else "files"
val reportOrFiles = if (isReportEmpty) "files" else "reports"
statusText.value =
"${allPreviewImageFiles.size} images found by $reportOrFiles"
}
Expand Down

0 comments on commit a1df800

Please sign in to comment.