DeleteLast will delete the last added write
()
| 14 | |
| 15 | // DeleteLast will delete the last added write |
| 16 | func (w *ConditionalWrite) DeleteLast() { |
| 17 | if len(w.Queued) == 0 { |
| 18 | return |
| 19 | } |
| 20 | w.Queued = w.Queued[:len(w.Queued)-1] |
| 21 | } |
| 22 | |
| 23 | // Last will return the last added write |
| 24 | func (w *ConditionalWrite) Last() string { |
no outgoing calls
no test coverage detected