lib/opentelemetry/trace/trace_flags.rb in opentelemetry-api-1.2.5 vs lib/opentelemetry/trace/trace_flags.rb in opentelemetry-api-1.3.0
- old
+ new
@@ -16,10 +16,10 @@
# Returns a newly created {TraceFlags} with the specified flags.
#
# @param [Integer] flags 8-bit byte of bit flags
# @return [TraceFlags]
def from_byte(flags)
- flags = 0 unless flags & ~0xFF == 0 # rubocop:disable Style/NumericPredicate
+ flags = 0 unless flags & ~0xFF == 0
new(flags)
end
end