Skip to content

Commit

Permalink
fix dep parsing of zig.mod files
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Apr 12, 2021
1 parent 2dd3ec9 commit 18988e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/handler/do_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func DoImport(w http.ResponseWriter, r *http.Request) {
case 1:
dpath = item
case 2:
dpath = item
dvers = item
}
}
deps = append(deps, dtype+" "+dpath+" "+dvers)
Expand All @@ -90,7 +90,7 @@ func DoImport(w http.ResponseWriter, r *http.Request) {
case 1:
dpath = item
case 2:
dpath = item
dvers = item
}
}
devdeps = append(devdeps, dtype+" "+dpath+" "+dvers)
Expand Down
4 changes: 2 additions & 2 deletions pkg/handler/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func Hook(w http.ResponseWriter, r *http.Request) {
case 1:
dpath = item
case 2:
dpath = item
dvers = item
}
}
deps = append(deps, dtype+" "+dpath+" "+dvers)
Expand All @@ -83,7 +83,7 @@ func Hook(w http.ResponseWriter, r *http.Request) {
case 1:
dpath = item
case 2:
dpath = item
dvers = item
}
}
devdeps = append(devdeps, dtype+" "+dpath+" "+dvers)
Expand Down

0 comments on commit 18988e0

Please sign in to comment.