File tree 2 files changed +3
-2
lines changed
python/lib/dependabot/python
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ def updated_requirement_based_files
135
135
sig { returns ( T . nilable ( T ::Array [ String ] ) ) }
136
136
def pip_compile_index_urls
137
137
if credentials . any? ( &:replaces_base? )
138
- credentials . select ( &:replaces_base? ) . map { |cred | AuthedUrlBuilder . authed_url ( credential : cred ) } . compact
138
+ credentials . select ( &:replaces_base? )
139
+ . filter_map { |cred | AuthedUrlBuilder . authed_url ( credential : cred ) } . compact
139
140
else
140
141
urls = credentials . map { |cred | AuthedUrlBuilder . authed_url ( credential : cred ) }
141
142
# If there are no credentials that replace the base, we need to
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ def authed_base_url(base_url)
190
190
cred = credential_for ( base_url )
191
191
return base_url unless cred
192
192
193
- T . must ( AuthedUrlBuilder . authed_url ( credential : cred ) & .gsub ( %r{/*$} , "" ) ) + "/"
193
+ T . must ( T . must ( AuthedUrlBuilder . authed_url ( credential : cred ) ) . gsub ( %r{/*$} , "" ) ) + "/"
194
194
end
195
195
196
196
def credential_for ( url )
You can’t perform that action at this time.
0 commit comments