tracks/swift/exercises/secret-handshake/Sources/SecretHandshakeExample.swift in trackler-2.1.0.53 vs tracks/swift/exercises/secret-handshake/Sources/SecretHandshakeExample.swift in trackler-2.1.0.54

- old
+ new

@@ -11,13 +11,11 @@ var commands: [String] { return commandsFunc() } private func commandsFunc() -> [String] { var commands = [String]() - for key in Array(commandValues.keys).sorted( by: < ) { - if (commandValue & key) != 0 { - commands.append(commandValues[key]!) - } + for key in Array(commandValues.keys).sorted( by: < ) where (commandValue & key) != 0 { + commands.append(commandValues[key]!) } if shouldReverse { return Array(commands.reversed()) } else {