Skip to content

Commit

Permalink
Apply @Araq's code review remark
Browse files Browse the repository at this point in the history
Related to nim-lang#127
  • Loading branch information
bobeff authored and CyberTailor committed Dec 12, 2021
1 parent fbf6db0 commit 7d7db26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nimblepkg/download.nim
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,7 @@ proc doDownloadTarball(url, downloadDir, version: string, queryRevision: bool):
let (cmdOutput, cmdExitCode) = doCmdEx(listCmd)
if cmdExitCode != QuitSuccess:
raise nimbleError(tryDoCmdExErrorMessage(listCmd, cmdOutput, cmdExitCode))
let lines = cmdOutput.splitLines()
for line in lines:
for line in cmdOutput.splitLines():
if line.contains(" -> "):
let parts = line.split
let linkPath = parts[^1]
Expand Down

0 comments on commit 7d7db26

Please sign in to comment.