Files
stack/agents/darkwing/work/queue-56-review/r1/mut/D23.diff
T

14 lines
706 B
Diff

diff --git a/packages/runs/src/state.mjs b/packages/runs/src/state.mjs
index a92c8713..49d8c1fd 100644
--- a/packages/runs/src/state.mjs
+++ b/packages/runs/src/state.mjs
@@ -65,7 +65,7 @@ function logEntry(line) {
// release.sh rollback skips them. A missing log is empty. With last, only
// the newest last well-formed entries are returned.
export function readActivationLog(dataRoot, { last } = {}) {
- if (last !== undefined && (!Number.isInteger(last) || last < 1)) {
+ if (last !== undefined && (!Number.isInteger(last) || last < 0)) {
throw new RunsError(`last must be a positive integer (got ${JSON.stringify(last)})`);
}
const state = readStateFile(dataRoot, ACTIVATION_LOG_FILE);