Try to figure out attribute checker problem (#33901)

For #31600
This commit is contained in:
wxiaoguang 2025-03-18 02:59:34 +08:00 committed by GitHub
parent fdaf1cca65
commit 9d7c02f9f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 96 additions and 15 deletions

View file

@ -1253,6 +1253,8 @@ func GetDiffForRender(ctx context.Context, gitRepo *git.Repository, opts *DiffOp
if language.Has() {
diffFile.Language = language.Value()
}
} else {
checker = nil // CheckPath fails, it's not impossible to "check" anymore
}
}