From 1238e646747b99b7112a34888e77f0252d68d323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zhiyu=20Zhu/=E6=9C=B1=E6=99=BA=E8=AF=AD?= Date: Fri, 5 Apr 2019 15:06:10 -0400 Subject: [PATCH] Improve Swift collection handling --- Sources/Schedule/Plan.swift | 6 ++---- Sources/Schedule/Time.swift | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/Schedule/Plan.swift b/Sources/Schedule/Plan.swift index e01c162..75c5fc8 100644 --- a/Sources/Schedule/Plan.swift +++ b/Sources/Schedule/Plan.swift @@ -473,10 +473,8 @@ extension Plan { guard !mondays.isEmpty else { return .init(plan: .never) } var plan = every(mondays[0]).plan - if mondays.count > 1 { - for i in 1..