Skip to content

Commit 7a2f2fd

Browse files
committed
Apply @Araq's code review remark
Related to #127
1 parent ef5edde commit 7a2f2fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nimblepkg/download.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ proc doDownloadTarball(url, downloadDir, version: string, queryRevision: bool):
320320
let (cmdOutput, cmdExitCode) = doCmdEx(listCmd)
321321
if cmdExitCode != QuitSuccess:
322322
raise nimbleError(tryDoCmdExErrorMessage(listCmd, cmdOutput, cmdExitCode))
323-
let lines = cmdOutput.splitLines()
324-
for line in lines:
323+
for line in cmdOutput.splitLines():
325324
if line.contains(" -> "):
326325
let parts = line.split
327326
let linkPath = parts[^1]

0 commit comments

Comments
 (0)