We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65a7fcb commit 56cc645Copy full SHA for 56cc645
tools/snippet-testing/language_handler/python_6.rb
@@ -23,8 +23,9 @@ def text_with_custom_header(file_content)
23
24
def replace_twilio_client_initialization(file_content)
25
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
+ updated_file_content = file_content.gsub! 'Client(account_sid, auth_token)',
+ 'Client(account_sid, auth_token, http_client=FakerHttpClient())'
28
+ updated_file_content == nil ? file_content : updated_file_content
29
end
30
31
0 commit comments