Skip to content

Commit

Permalink
Merge pull request #13 from DataDog/anmarchenko/old_ruby_mode_lint
Browse files Browse the repository at this point in the history
enable ruby-2.1 mode for linting until we separate from dd-trace-rb
  • Loading branch information
anmarchenko committed Aug 31, 2023
2 parents 1e801e4 + 6d1012c commit 730d567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .standard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ruby_version: 2.7
ruby_version: 2.1
format: progress

ignore:
- 'gemfiles/**/*'
- 'tasks/**/*'
- 'yard/**/*'
2 changes: 1 addition & 1 deletion lib/datadog/ci/ext/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def extract_local_git

def branch_or_tag(branch_or_tag)
branch = tag = nil
if branch_or_tag&.include?("tags/")
if branch_or_tag && branch_or_tag.include?("tags/")
tag = branch_or_tag
else
branch = branch_or_tag
Expand Down

0 comments on commit 730d567

Please sign in to comment.