Skip to content

Commit

Permalink
should not use the variable name res here since it has been used ou…
Browse files Browse the repository at this point in the history
…tside
  • Loading branch information
yihui committed Feb 9, 2024
1 parent c391f62 commit 5b040d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/dynamic.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ dynamic_site = function(
owd = setwd(dir); on.exit(setwd(owd))
setwd(site.dir)
req = pre_process(req)
res = response(req)
ret = response(req)
req = post_process(req)
add_js(res, js, res$interval, req$PATH_INFO)
add_js(ret, js, res$interval, req$PATH_INFO)
},
onWSOpen = function(ws) {
ws$onMessage(function(binary, message) in_dir(dir, {
Expand Down

0 comments on commit 5b040d8

Please sign in to comment.