Skip to content

Commit

Permalink
fix(validator): this check is not really required
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed May 2, 2021
1 parent 1c513af commit c3d75e3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ func isValidMonthDay(val string, last int, ref time.Time) (bool, error) {
return day == last, nil
}

if ref.Weekday() == 0 || ref.Weekday() == 6 {
return false, nil
}

pos := strings.Index(val, "W")
if pos < 1 {
return false, errors.New("invalid offset value: " + val)
Expand Down

0 comments on commit c3d75e3

Please sign in to comment.