Skip to content

Commit f2b7ae2

Browse files
committed
Fix openai_ask style cleanup
1 parent 19502dc commit f2b7ae2

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

lib/fastlane/plugin/wpmreleasetoolkit/actions/common/openai_ask_action.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def self.unsupported_tool_call_result(tool_call)
224224
type = tool_call['type'] || '<missing>'
225225
error =
226226
if type == 'function'
227-
"Function tool call is missing a non-empty function.name."
227+
'Function tool call is missing a non-empty function.name.'
228228
else
229229
"Unsupported tool call type '#{type}'. Only function tool calls are supported."
230230
end

spec/openai_ask_action_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ def run_test(prompt_param:, question_param:, expected_prompt:, expected_response
454454
end
455455

456456
it 'returns a structured error tool result when the handler raises' do
457-
allow(FastlaneCore::Globals).to receive(:verbose?).and_return(true)
458457
expect(UI).not_to receive(:verbose)
459458

460459
tool_handlers = {
@@ -602,7 +601,6 @@ def to_json(*_args)
602601
end
603602

604603
it 'does not log raw tool arguments even when verbose mode is enabled' do
605-
allow(FastlaneCore::Globals).to receive(:verbose?).and_return(true)
606604
expect(UI).to receive(:error).with(/Raw payload omitted/)
607605
expect(UI).not_to receive(:verbose)
608606

0 commit comments

Comments
 (0)