Commit commits the edit
()
| 222 | |
| 223 | // Commit commits the edit |
| 224 | func (e *Edit) Commit() error { |
| 225 | _, err := e.client.service.Edits.Commit(e.client.packageName, e.editID).Context(e.ctx).Do() |
| 226 | if err != nil { |
| 227 | return fmt.Errorf("failed to commit edit: %w", err) |
| 228 | } |
| 229 | return nil |
| 230 | } |
| 231 | |
| 232 | // Delete deletes the edit without committing |
| 233 | func (e *Edit) Delete() error { |
no test coverage detected