Skip to content

Commit

Permalink
Merge pull request #69 from benmacleod/remove-unneeded-check
Browse files Browse the repository at this point in the history
Remove unneeded check
  • Loading branch information
toolmantim authored Nov 28, 2018
2 parents d07df24 + 7696b52 commit 8941195
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ruby/bin/annotate
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ job_pattern = '-(.*).xml' if !job_pattern || job_pattern.empty?
failure_format = ENV['BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_FORMAT']
failure_format = 'classname' if !failure_format || failure_format.empty?

# TODO -- remove this validation once https://github.com/buildkite/agent/pull/748 is merged
if !%w(classname file).include?(failure_format)
abort("Invalid failure-format #{failure_format} provided -- leave this setting blank or specify `file` or `classname`")
end

class Failure < Struct.new(:name, :failed_test, :body, :job, :type)
end

Expand Down

0 comments on commit 8941195

Please sign in to comment.