mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
build: refactor to use strings.Lines
This commit is contained in:
parent
41f580f209
commit
a0d8b7df92
1 changed files with 1 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ func doCheckBadDeps() {
|
|||
if err != nil {
|
||||
log.Fatalf("Failed to list '%s' dependencies: %v", rule[0], err)
|
||||
}
|
||||
for _, line := range strings.Split(string(out), "\n") {
|
||||
for line := range strings.Lines(string(out)) {
|
||||
if strings.TrimSpace(line) == rule[1] {
|
||||
log.Printf("Found bad dependency '%s' -> '%s'", rule[0], rule[1])
|
||||
failed = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue