Skip to content

Commit d074cf2

Browse files
committed
♻️ Shorten code
1 parent d30e112 commit d074cf2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Sources/Cli/Calendars.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ struct Calendars: ParsableCommand {
2626
mutating func run() {
2727
Log.setDebug(debug)
2828

29-
let calendarFilter = CalendarFilter.build(
30-
opts: opts
31-
)
32-
33-
let service = EventService(repo: EventRepo())
34-
let calendars = service.calendars(filter: calendarFilter)
29+
let calendars = EventService(repo: EventRepo())
30+
.calendars(filter: CalendarFilter.build(
31+
opts: opts
32+
))
3533

3634
switch format {
3735
case .json:

0 commit comments

Comments
 (0)