summaryrefslogtreecommitdiff
path: root/internal/showcase/language_detector.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/showcase/language_detector.go')
-rw-r--r--internal/showcase/language_detector.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/showcase/language_detector.go b/internal/showcase/language_detector.go
index 692f048..9a42be1 100644
--- a/internal/showcase/language_detector.go
+++ b/internal/showcase/language_detector.go
@@ -201,7 +201,7 @@ func detectLanguages(repoPath string) (languages []LanguageStats, documentation
}
}
}
- file.Close()
+ closeFile(file)
}
}
@@ -281,7 +281,7 @@ func countFileLines(path string) (int, error) {
if err != nil {
return 0, err
}
- defer file.Close()
+ defer closeFile(file)
scanner := bufio.NewScanner(file)
lines := 0