Skip to content

Commit

Permalink
Suggested code cleanup by TODO comment
Browse files Browse the repository at this point in the history
This commit introduces the code cleanup suggested by the TODO comment in the code.

Basically, it moves the code from the if-else statement to a switch statement without the default case. I used the basic idea of the code used in PR #4507.

Changelog-Changed: None.

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo authored and rustyrussell committed May 31, 2021
1 parent 90ced7e commit 0ed7c0d
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 133 deletions.
2 changes: 1 addition & 1 deletion wallet/db_postgres_sqlgen.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wallet/db_sqlite3_sqlgen.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0ed7c0d

Please sign in to comment.