Skip to content

Commit a546bbf

Browse files
committed
Rename vars
1 parent 2552a6c commit a546bbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/update/matcher.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import (
88
log "github.com/sirupsen/logrus"
99
)
1010

11-
func matchDurationFilter(duration_limit int64, episode_duration int64, operator string, logger log.FieldLogger) bool {
12-
if duration_limit != 0 {
13-
if operator == "min" && episode_duration < duration_limit {
11+
func matchDurationFilter(durationLimit int64, episodeDuration int64, operator string, logger log.FieldLogger) bool {
12+
if durationLimit != 0 {
13+
if operator == "min" && episodeDuration < durationLimit {
1414
logger.Info("skipping due to duration filter")
1515
return false
16-
} else if operator == "max" && episode_duration > duration_limit {
16+
} else if operator == "max" && episodeDuration > durationLimit {
1717
logger.Info("skipping due to duration filter")
1818
return false
1919
}

0 commit comments

Comments
 (0)