Skip to content

Commit

Permalink
Update db/crud.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tor Colvin <[email protected]>
  • Loading branch information
bbrks and torcolvin authored Jan 18, 2024
1 parent dda44a3 commit b7a7de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (db *DatabaseCollectionWithUser) getRev(ctx context.Context, docid, revid s
func (db *DatabaseCollectionWithUser) documentRevisionForRequest(ctx context.Context, docID string, revision DocumentRevision, revID *string, cv *Version, maxHistory int, historyFrom []string) (DocumentRevision, error) {
// ensure only one of cv or revID is specified
if cv != nil && revID != nil {
return DocumentRevision{}, fmt.Errorf("must have one of cv or revID in documentRevisionForRequest (had %v %v)", cv, revID)
return DocumentRevision{}, fmt.Errorf("must have one of cv or revID in documentRevisionForRequest (had cv=%v revID=%v)", cv, revID)
}
var requestedVersion string
if revID != nil {
Expand Down

0 comments on commit b7a7de4

Please sign in to comment.