babluboy / bookworm

A simple ebook reader for Elementary OS
GNU General Public License v3.0
1.32k stars 100 forks source link

Improved readability, I think... #274

Closed onerbs closed 4 years ago

onerbs commented 5 years ago

Added the BOOKWORM_TABLE_NAME and BOORMETADATA_TABLE_NAME variables for not to having to write BOOK*_TABLE_BASE_NAME+BOOK*_TABLE_VERSION.

Added the report_query_execution_error function to get rid of repetitive code.

babluboy commented 4 years ago

Many thanks for the PR, it cleans up a bit of repetitive code and logic and as you mentioned it improves readability