(version backend.Version)
| 568 | } |
| 569 | |
| 570 | func createPreconditions(version backend.Version) (preconditions storage.Conditions, err error) { |
| 571 | if version == backend.VersionNew { |
| 572 | preconditions.DoesNotExist = true |
| 573 | return |
| 574 | } |
| 575 | |
| 576 | generation, err := strconv.ParseInt(string(version), 10, 64) |
| 577 | if err != nil { |
| 578 | return storage.Conditions{}, backend.ErrVersionInvalid |
| 579 | } |
| 580 | preconditions.GenerationMatch = generation |
| 581 | return |
| 582 | } |
no outgoing calls
no test coverage detected