Skip to content

Commit

Permalink
enable ruby-2.1 mode for linting until we separate from dd-trace-rb
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Aug 31, 2023
1 parent 038b95c commit 6d1012c
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 6d1012c

Please sign in to comment.