Return nil on mirror command to prevent posting to slack
The chatops mirror status
command is posting an additional comment when the command is run (see example here). This is because the #perform
method of the Command
module will post any returned string to slack. Since we return an object, it is implicitly converted to a string and sent to slack. To fix this, we return nil
in the perform
method instead of returning the return of the run_trigger call.