Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amarok: fix syntax for ternary operation
send_key tag_has_match('foo') ? 'variant1' : 'variant2'; results in the condition 'sendkey tag_has_match' - and its true/false result would trigger 'variant1' or 'variant2' as 'command'. In perl though, a 'string' on it's own is simply a true statement: Wrap the ternary operatoin properly in parentheses to ensure the result of that operation is passed down to send_key.
- Loading branch information