Skip to content

Minor refactoring and code cleanup#28

Merged
thisisparker merged 1 commit intothisisparker:masterfrom
hazel-nut:master
Apr 21, 2021
Merged

Minor refactoring and code cleanup#28
thisisparker merged 1 commit intothisisparker:masterfrom
hazel-nut:master

Conversation

@hazel-nut
Copy link
Contributor

Some superficial cleanup I did while familiarizing myself with the code:

  • Use a translation table instead of small_nums() and encircle() (see str.maketrans() and str.translate()).

  • Take out some extraneous return Nones for functions that aren't expected to return a value

  • Tighten up some boolean logic

I realized only after finishing this PR that it duplicates some of the work over in #27, but maybe this will make that PR more contained to the terminal resizing work. 🙂

@thisisparker thisisparker merged commit df1ae2d into thisisparker:master Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants