Skip to content

Commit 8d5e737

Browse files
committed
cleanup
1 parent 359b10b commit 8d5e737

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

lib/config.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ export function validateConfigTypes(config: Record<string, any>): ValidationErro
243243
actual: typeof config.turnProtection.turns,
244244
})
245245
}
246-
// Warn if turns is 0 or negative
247246
if (
248247
typeof config.turnProtection.turns === "number" &&
249248
config.turnProtection.turns < 1
@@ -337,7 +336,6 @@ export function validateConfigTypes(config: Record<string, any>): ValidationErro
337336
actual: typeof tools.settings.nudgeFrequency,
338337
})
339338
}
340-
// Warn if nudgeFrequency is 0 or negative
341339
if (
342340
typeof tools.settings.nudgeFrequency === "number" &&
343341
tools.settings.nudgeFrequency < 1
@@ -588,7 +586,7 @@ function showConfigValidationWarnings(
588586
duration: 7000,
589587
},
590588
})
591-
} catch {}
589+
} catch { }
592590
}, 7000)
593591
}
594592

@@ -892,7 +890,7 @@ export function getConfig(ctx: PluginInput): PluginConfig {
892890
duration: 7000,
893891
},
894892
})
895-
} catch {}
893+
} catch { }
896894
}, 7000)
897895
} else if (result.data) {
898896
// Validate config keys and types
@@ -938,7 +936,7 @@ export function getConfig(ctx: PluginInput): PluginConfig {
938936
duration: 7000,
939937
},
940938
})
941-
} catch {}
939+
} catch { }
942940
}, 7000)
943941
} else if (result.data) {
944942
// Validate config keys and types
@@ -981,7 +979,7 @@ export function getConfig(ctx: PluginInput): PluginConfig {
981979
duration: 7000,
982980
},
983981
})
984-
} catch {}
982+
} catch { }
985983
}, 7000)
986984
} else if (result.data) {
987985
// Validate config keys and types

lib/strategies/purge-errors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export const purgeErrors = (
3939
}
4040

4141
const protectedTools = config.strategies.purgeErrors.protectedTools
42-
// Ensure turnThreshold is at least 1 to prevent immediate pruning of all errors
4342
const turnThreshold = Math.max(1, config.strategies.purgeErrors.turns)
4443

4544
const newPruneIds: string[] = []

0 commit comments

Comments
 (0)