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 ElementsProject#4507.

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed May 25, 2021
1 parent 9a363c6 commit 46da066
Show file tree
Hide file tree
Showing 4 changed files with 500 additions and 28 deletions.
8 changes: 8 additions & 0 deletions wallet/db_postgres_sqlgen.c

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

8 changes: 8 additions & 0 deletions 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 46da066

Please sign in to comment.