Skip to content

Commit 47f7e78

Browse files
authored
Avoid checking message constraints when there are none (#3945)
1 parent bf063a5 commit 47f7e78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

private/bufpkg/bufcheck/bufcheckserver/internal/buflintvalidate/buflintvalidate.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ func CheckMessage(
3535
if err != nil {
3636
return err
3737
}
38+
if messageRules == nil {
39+
return nil
40+
}
3841
return checkCELForMessage(
3942
addAnnotationFunc,
4043
messageRules,

0 commit comments

Comments
 (0)