-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove unnecessary conditionals in filename_for_year
- Loading branch information
Showing
1 changed file
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5716800
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nichannah - I'm not sure why this empty string check was needed - it looks like replace_text will return the original string (not an empty string) if there's no match, so these conditionals aren't needed.
There's no check for an empty string in the only other place replace_text is used.
So I've removed the empty string checks I put into my commit based on your original code.
Does that sound OK?