From: Seyed Amir Hossein Aqajari Date: Sun, 28 Jul 2019 23:57:40 +0000 (-0700) Subject: Update beacon-control.groovy X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartapps.git;a=commitdiff_plain;h=646050e78aab0057cd68e37694fca564d6d17f0d Update beacon-control.groovy --- 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] }