-
-
Save le0nidas/370345f6c773c7064882ea4f8864680a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun UglyTask.printAssignment() { | |
when { | |
assignedGroup == null && assignedUser == null -> println("\"$name\" is assigned to no one") | |
assignedGroup != null -> println("\"$name\" is assigned to to group: ${assignedGroup.name}") | |
assignedUser != null -> println("\"$name\" is assigned to to user: ${assignedUser.name}") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment