change: set closeResult nil to reduce unnecessary summary info

This commit is contained in:
lilong.129
2024-11-12 22:29:39 +08:00
parent 11893aa5c1
commit 589b18f9f0
4 changed files with 21 additions and 12 deletions
+4
View File
@@ -283,3 +283,7 @@ type ClosePopupsResult struct {
CloseArea Box `json:"closeArea"`
Text string `json:"text"`
}
func (c ClosePopupsResult) IsEmpty() bool {
return c.PopupArea.IsEmpty() && c.CloseArea.IsEmpty()
}