Skip to content

Commit

Permalink
Ruby 2.4 doesn't have Integer#anybits?
Browse files Browse the repository at this point in the history
  • Loading branch information
fbogsany committed Sep 3, 2019
1 parent fe512a6 commit f35ffbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/lib/opentelemetry/trace/trace_flags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def initialize(flags)
#
# @return [Boolean]
def sampled?
@flags.anybits?(1)
(@flags & 1) != 0
end

DEFAULT = from_byte(0)
Expand Down

0 comments on commit f35ffbf

Please sign in to comment.