Skip to content

Commit

Permalink
chore: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
  • Loading branch information
siarhei-agoric and gibson042 committed Jul 13, 2024
1 parent c9bf879 commit fef24b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions packages/cosmic-swingset/test/export-storage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ const makeBatchChainStorage = published => {
const [path] = args;
return entries(path).map(([key]) => key);
}
case 'setWithoutNotify':
{
for (const [path] of args) {
deleted.push(path);
}
case 'setWithoutNotify': {
for (const [path] of args) {
deleted.push(path);
}
return;
}
default:
throw Error(`not impl: ${method}`);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/solo/src/set-fake-chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function setFakeChain(basedir, GCI, fakeDelay) {
};
add(newconn);
const connections = [];
for (const [_type, conns] of Object.entries(connsByType)) {
for (const conns of Object.values(connsByType)) {
connections.push(...conns);
}
fs.writeFileSync(fn, `${JSON.stringify(connections, undefined, 2)}\n`);
Expand Down

0 comments on commit fef24b1

Please sign in to comment.