Skip to content

Commit

Permalink
Add a small code improvement
Browse files Browse the repository at this point in the history
In the `toRevDep` procedure directly use the `basicInfo` tuple without
constructing a new tuple from its fields.

Related to nim-lang#127
  • Loading branch information
bobeff authored and CyberTailor committed Dec 12, 2021
1 parent ea83db0 commit 6c63691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimblepkg/reversedeps.nim
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ proc toRevDep*(pkg: PackageInfo): ReverseDependency =
if not pkg.isLink:
result = ReverseDependency(
kind: rdkInstalled,
pkgInfo: (pkg.basicInfo.name, pkg.basicInfo.version, pkg.basicInfo.checksum))
pkgInfo: pkg.basicInfo)
else:
result = ReverseDependency(
kind: rdkDevelop,
Expand Down

0 comments on commit 6c63691

Please sign in to comment.