Skip to content

Commit 43a532e

Browse files
authored
Merge pull request #104 from JuliaPackaging/kf/fixdeploy
Fix `resp not defined` error
2 parents 33c2bc5 + 4b21685 commit 43a532e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/wizard/deploy.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,8 @@ function obtain_token(state, repo_name, user)
235235
if resp.status != 200
236236
GitHub.handle_response_error(resp)
237237
end
238-
break
238+
return JSON.parse(resp.body)["token"]
239239
end
240-
JSON.parse(resp.body)["token"]
241240
end
242241

243242
function common_git_repo_setup(repo_dir, repo, state)

0 commit comments

Comments
 (0)