Rename a shadowed variable in the AFL advancement test mock
The db mock's local match lookup shadowed the test helper of the same name, which oxlint's no-shadow rejects. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDbHrCce1UhahbkwKkc7hK
This commit is contained in:
parent
a747d73a4c
commit
a7b7921b9b
1 changed files with 3 additions and 3 deletions
|
|
@ -57,9 +57,9 @@ const db = {
|
||||||
set: (data: Partial<MatchRow>) => {
|
set: (data: Partial<MatchRow>) => {
|
||||||
const applyTo = (where: unknown) => {
|
const applyTo = (where: unknown) => {
|
||||||
const values = whereValues(where);
|
const values = whereValues(where);
|
||||||
const row = rows.find((r) => values.includes(r.id));
|
const target = rows.find((r) => values.includes(r.id));
|
||||||
if (row) Object.assign(row, data);
|
if (target) Object.assign(target, data);
|
||||||
return row;
|
return target;
|
||||||
};
|
};
|
||||||
// Advancement writes through the query builder with and without .returning().
|
// Advancement writes through the query builder with and without .returning().
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue