Skip to content

Commit

Permalink
Modules: removed not needed previous location initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeioex committed Jun 29, 2024
1 parent 9d4bf6c commit 59bba97
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions nginx/ngx_js.c
Original file line number Diff line number Diff line change
Expand Up @@ -1542,12 +1542,6 @@ ngx_js_merge_vm(ngx_conf_t *cf, ngx_js_loc_conf_t *conf,
ngx_array_t *imports, *preload_objects, *paths;
ngx_js_named_path_t *import, *pi, *pij, *preload;

if (prev->imports != NGX_CONF_UNSET_PTR && prev->vm == NULL) {
if (init_vm(cf, (ngx_js_loc_conf_t *) prev) != NGX_OK) {
return NGX_ERROR;
}
}

if (conf->imports == NGX_CONF_UNSET_PTR
&& conf->paths == NGX_CONF_UNSET_PTR
&& conf->preload_objects == NGX_CONF_UNSET_PTR)
Expand Down

0 comments on commit 59bba97

Please sign in to comment.