Skip to content

Commit

Permalink
Remove some redundant parentheses in the mill init build gen code (#…
Browse files Browse the repository at this point in the history
…4405)

As commented in
#4363 (comment).
The PR got merged before I replied to this.
  • Loading branch information
ShreckYe authored Jan 28, 2025
1 parent 5151dc2 commit 6899b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ object GradleBuildGenMain extends BuildGenBase[ProjectModel, JavaModel.Dep] {
val ivyDep: JavaModel.Dep => String =
cfg.shared.depsObject.fold(interpIvy(_)) { objName => dep =>
val depName = s"`${dep.group()}:${dep.name()}`"
sd = sd.copy(namedIvyDeps = sd.namedIvyDeps :+ ((depName, interpIvy(dep))))
sd = sd.copy(namedIvyDeps = sd.namedIvyDeps :+ (depName, interpIvy(dep)))
s"$objName.$depName"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ object MavenBuildGenMain extends BuildGenBase[Model, Dependency] {
cfg.shared.depsObject.fold(interpIvy(_)) { objName => dep =>
{
val depName = s"`${dep.getGroupId}:${dep.getArtifactId}`"
sd = sd.copy(namedIvyDeps = sd.namedIvyDeps :+ ((depName, interpIvy(dep))))
sd = sd.copy(namedIvyDeps = sd.namedIvyDeps :+ (depName, interpIvy(dep)))
s"$objName.$depName"
}
}
Expand Down

0 comments on commit 6899b66

Please sign in to comment.