Skip to content

Commit f265a5c

Browse files
committed
restore solve.rs
1 parent ba56b8e commit f265a5c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/server/src/checkin/solve.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,6 @@ impl Server {
359359
let candidates = self
360360
.checkin_solve_get_candidates(checkpoint, item, pattern)
361361
.await?;
362-
363-
// If there are no candidates at all, fail immediately.
364-
if candidates.is_empty() {
365-
return Err(tg::error!(%pattern, "no candidates found for tag pattern"));
366-
}
367-
368362
checkpoint.candidates.replace(candidates);
369363
}
370364

@@ -458,7 +452,7 @@ impl Server {
458452
let output = self
459453
.get_object(&id.clone().into())
460454
.await
461-
.map_err(|source| tg::error!(!source, ?id, "failed to get the object"))?;
455+
.map_err(|source| tg::error!(!source, "failed to get the object"))?;
462456
let data = tg::artifact::Data::deserialize(id.kind(), output.bytes)
463457
.map_err(|source| tg::error!(!source, "failed to deserialize the object"))?;
464458

0 commit comments

Comments
 (0)