chore: fix clippy warnings in gradle module (#4736)
This commit is contained in:
parent
0abf4b937e
commit
14de3b34c1
|
@ -89,7 +89,7 @@ fn get_wrapper_properties_file(context: &Context, recursive: bool) -> Option<Str
|
||||||
.is_match()
|
.is_match()
|
||||||
{
|
{
|
||||||
properties = utils::read_file(
|
properties = utils::read_file(
|
||||||
&context
|
context
|
||||||
.current_dir
|
.current_dir
|
||||||
.join("gradle/wrapper/gradle-wrapper.properties"),
|
.join("gradle/wrapper/gradle-wrapper.properties"),
|
||||||
)
|
)
|
||||||
|
@ -98,7 +98,7 @@ fn get_wrapper_properties_file(context: &Context, recursive: bool) -> Option<Str
|
||||||
if recursive && properties.is_none() {
|
if recursive && properties.is_none() {
|
||||||
for dir in context.current_dir.ancestors().skip(1) {
|
for dir in context.current_dir.ancestors().skip(1) {
|
||||||
properties =
|
properties =
|
||||||
utils::read_file(&dir.join("gradle/wrapper/gradle-wrapper.properties")).ok();
|
utils::read_file(dir.join("gradle/wrapper/gradle-wrapper.properties")).ok();
|
||||||
if properties.is_some() {
|
if properties.is_some() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue