User-Agent-Tracker: check if comment is there
This commit is contained in:
parent
efb91d0a38
commit
8f0b35a0f1
|
@ -37,7 +37,7 @@ class Travis::Api::App
|
||||||
end
|
end
|
||||||
|
|
||||||
def mark_travis(agent)
|
def mark_travis(agent)
|
||||||
command = agent.application.comment.detect { |c| c.start_with? "command " }
|
command = agent.application.comment.detect { |c| c.start_with? "command " } if agent.application.comment
|
||||||
|
|
||||||
if command
|
if command
|
||||||
mark(:cli, :version, agent.version)
|
mark(:cli, :version, agent.version)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user