Skip to content

cleaned up a fucntion because it gave me a stroke everytime#3

Open
aln730 wants to merge 2 commits intoComputerScienceHouse:masterfrom
aln730:master
Open

cleaned up a fucntion because it gave me a stroke everytime#3
aln730 wants to merge 2 commits intoComputerScienceHouse:masterfrom
aln730:master

Conversation

@aln730
Copy link
Copy Markdown
Contributor

@aln730 aln730 commented Mar 20, 2026

What

cleaned up get_volume function.

Why

it gave me a stroke every time I read it.

Test Plan

tested locally

Env Vars

none

Documentation

none. not required

Checklist

  • Tested all changes locally

@aln730 aln730 requested a review from Mstrodl March 26, 2026 15:29
Comment on lines +23 to +24
(Weekday::Mon | Weekday::Tue | Weekday::Wed | Weekday::Thu, 0..7)
| (Weekday::Mon | Weekday::Tue | Weekday::Wed | Weekday::Thu, 23..) => true,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(Weekday::Mon | Weekday::Tue | Weekday::Wed | Weekday::Thu, 0..7)
| (Weekday::Mon | Weekday::Tue | Weekday::Wed | Weekday::Thu, 23..) => true,
(Weekday::Mon | Weekday::Tue | Weekday::Wed | Weekday::Thu, 0..7 | 23..) => true,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh, I was unsure if patterns for ranges work like that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They do

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