Skip to content

Commit 56cc645

Browse files
committed
Fix replace_twilio_client_initialization method return value
1 parent 65a7fcb commit 56cc645

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/snippet-testing/language_handler/python_6.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ def text_with_custom_header(file_content)
2323

2424
def replace_twilio_client_initialization(file_content)
2525
cert_path = ENV['FAKE_CERT_PATH']
26-
file_content.gsub! 'Client(account_sid, auth_token)',
27-
'Client(account_sid, auth_token, http_client=FakerHttpClient())' || file_content
26+
updated_file_content = file_content.gsub! 'Client(account_sid, auth_token)',
27+
'Client(account_sid, auth_token, http_client=FakerHttpClient())'
28+
updated_file_content == nil ? file_content : updated_file_content
2829
end
2930
end
3031
end

0 commit comments

Comments
 (0)