style: deduplicate types in function signatures (#2322)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-12-27 06:24:15 +01:00
1 parent d8b9026ef2
commit eb01cb7c7b
6 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -408,7 +408,7 @@ func getFileExtension(file fs.FileInfo) string {
// character will appear (0 means left, 50 means middle, 100 means right).
// The file extension is not affected by truncation, however it will be clipped
// if it exceeds the allowed width.
func truncateFilename(file fs.FileInfo, maxWidth int, truncatePct int, truncateChar rune) string {
func truncateFilename(file fs.FileInfo, maxWidth, truncatePct int, truncateChar rune) string {
filename := file.Name()
if runeSliceWidth([]rune(filename)) <= maxWidth {
return filename