Skip to content

Commit 396073e

Browse files
committed
Fix issues raised by standardrb
1 parent 99fc77e commit 396073e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/datadog/open_feature/evaluation_engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def initialize(reporter, telemetry:, logger: Datadog.logger)
2424

2525
def fetch_value(flag_key:, expected_type:, evaluation_context: nil)
2626
unless ALLOWED_TYPES.include?(expected_type)
27-
message = "unknown type #{expected_type.inspect}, allowed types #{ALLOWED_TYPES.join(', ')}"
27+
message = "unknown type #{expected_type.inspect}, allowed types #{ALLOWED_TYPES.join(", ")}"
2828

2929
return ResolutionDetails.new(
3030
error_code: Ext::UNKNOWN_TYPE,

spec/datadog/open_feature/exposures/batch_builder_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
end
2828
end
2929

30-
3130
it 'returns payload with context fields' do
3231
expect(builder.payload_for([event])).to eq(
3332
context: {env: 'prod', service: 'dummy-service', version: '1.0.0'},
@@ -86,7 +85,8 @@
8685
variant: {key: 'a'},
8786
subject: {id: 'user-1', attributes: {'plan' => 'pro'}}
8887
}]
89-
) end
88+
)
89+
end
9090
end
9191
end
9292
end

0 commit comments

Comments
 (0)