From 646050e78aab0057cd68e37694fca564d6d17f0d Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Sun, 28 Jul 2019 16:57:40 -0700 Subject: [PATCH] Update beacon-control.groovy --- official/beacon-control.groovy | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/official/beacon-control.groovy b/official/beacon-control.groovy index 007b455..a3b0c8d 100755 --- a/official/beacon-control.groovy +++ b/official/beacon-control.groovy @@ -303,15 +303,6 @@ private timeIntervalLabel() { (starting && ending) ? hhmm(starting) + "-" + hhmm(ending, "h:mm a z") : "" } -private list(List names) { - switch (names.size()) { - case 0: - return null - case 1: - return names[0] - case 2: - return "${names[0]} and ${names[1]}" - default: - return "${names[0..-2].join(', ')}, and ${names[-1]}" - } +private list(Object names) { + return names[0] } -- 2.34.1