Skip to content

Commit 2a6e8c3

Browse files
committed
reformat
1 parent 049af0d commit 2a6e8c3

File tree

1 file changed

+10
-16
lines changed
  • crates/rb-core/src/bundler

1 file changed

+10
-16
lines changed

crates/rb-core/src/bundler/mod.rs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)