Update beacon-control.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Sun, 28 Jul 2019 23:57:40 +0000 (16:57 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Sun, 28 Jul 2019 23:57:40 +0000 (16:57 -0700)
official/beacon-control.groovy

index 007b45560a8a64f915dda217013b8961bb261e8a..a3b0c8d1f4665a1af70d5f0e14ed984e12c8dca7 100755 (executable)
@@ -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]
 }