Skip to content

Commit

Permalink
refactor(utils/rename.go): unnecessary type arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyXiang committed Mar 15, 2023
1 parent ccfaf2b commit c5b71c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/rename.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func ParseEpisodeInfo(filename string, keepSeason bool) *EpisodeInfo {
if sMatches == nil {
break
}
seasonStr := FirstOrElse[string](func(arg string) bool {
seasonStr := FirstOrElse(func(arg string) bool {
return arg != ""
}, "", sMatches[2], sMatches[4], sMatches[6])
season, err := strconv.Atoi(seasonStr)
Expand Down

0 comments on commit c5b71c8

Please # to comment.