Created
March 10, 2016 20:26
-
-
Save ljack/c245f7ed2a00481d513f to your computer and use it in GitHub Desktop.
code review this
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
function phrase_action_message (action) { | |
if (~action.task.name.indexOf('<node.name>')) { | |
return action.task.name.replace('<node.name>', action.node.name); | |
} | |
return action.task.name + ' on ' + action.node.name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment