Function
docsCreatedFootnoteID
(response *docs.BatchUpdateDocumentResponse)
Source from the content-addressed store, hash-verified
| 328 | } |
| 329 | |
| 330 | func docsCreatedFootnoteID(response *docs.BatchUpdateDocumentResponse) string { |
| 331 | if response == nil { |
| 332 | return "" |
| 333 | } |
| 334 | for _, reply := range response.Replies { |
| 335 | if reply != nil && reply.CreateFootnote != nil && reply.CreateFootnote.FootnoteId != "" { |
| 336 | return reply.CreateFootnote.FootnoteId |
| 337 | } |
| 338 | } |
| 339 | return "" |
| 340 | } |
Tested by
no test coverage detected