chore(deps): update dependencies, add new lint rules, fix lint (#39601)

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Giteabotandsilverwind authored and GitHub committed 2026-10-05 10:11:50 +00:00
1 parent b0d5a63e7a
commit 27d876e311
14 files changed
+686 -844

No files matched your search

+2 -2
View File
@@ -135,8 +135,8 @@ func shortenFilename(filename, fallback string) string {
if filename == "" {
return fallback
}
if lastIndex := strings.LastIndexByte(filename, '/'); lastIndex >= 0 {
if secondLastIndex := strings.LastIndexByte(filename[:lastIndex], '/'); secondLastIndex >= 0 {
if dir, _, ok := strings.CutLast(filename, "/"); ok {
if secondLastIndex := strings.LastIndexByte(dir, '/'); secondLastIndex >= 0 {
return filename[secondLastIndex+1:]
}
}