File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed
crates/rb-core/src/bundler Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -146,26 +146,20 @@ impl BundlerRuntime {
146146 let trimmed = after_ruby. trim ( ) ;
147147
148148 // Single quotes
149- if let Some ( version) = trimmed
150- . strip_prefix ( '\'' )
151- . and_then ( |single_quoted| {
152- single_quoted
153- . find ( '\'' )
154- . map ( |end_quote| single_quoted[ ..end_quote] . to_string ( ) )
155- } )
156- {
149+ if let Some ( version) = trimmed. strip_prefix ( '\'' ) . and_then ( |single_quoted| {
150+ single_quoted
151+ . find ( '\'' )
152+ . map ( |end_quote| single_quoted[ ..end_quote] . to_string ( ) )
153+ } ) {
157154 return Some ( version) ;
158155 }
159156
160157 // Double quotes
161- if let Some ( version) = trimmed
162- . strip_prefix ( '"' )
163- . and_then ( |double_quoted| {
164- double_quoted
165- . find ( '"' )
166- . map ( |end_quote| double_quoted[ ..end_quote] . to_string ( ) )
167- } )
168- {
158+ if let Some ( version) = trimmed. strip_prefix ( '"' ) . and_then ( |double_quoted| {
159+ double_quoted
160+ . find ( '"' )
161+ . map ( |end_quote| double_quoted[ ..end_quote] . to_string ( ) )
162+ } ) {
169163 return Some ( version) ;
170164 }
171165
You can’t perform that action at this time.
0 commit comments