diff options
author | Ruslan Ermilov <ru@nginx.com> | 2016-12-08 17:29:01 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2016-12-08 17:29:01 +0300 |
commit | 41f06845cf5373d6a86e383f946006fd4ee87137 (patch) | |
tree | 4db24d645ed69901371e667a5d0640c6d8ab3ba0 /src/stream/ngx_stream_map_module.c | |
parent | 7ef8ca24b563d89f4bbc7b9b6f24211bbbbfbc41 (diff) | |
download | nginx-41f06845cf5373d6a86e383f946006fd4ee87137.tar.gz nginx-41f06845cf5373d6a86e383f946006fd4ee87137.zip |
Map: simplified "map" block parser.
No functional changes.
Diffstat (limited to 'src/stream/ngx_stream_map_module.c')
-rw-r--r-- | src/stream/ngx_stream_map_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stream/ngx_stream_map_module.c b/src/stream/ngx_stream_map_module.c index 47a15bef7..e65c70ca0 100644 --- a/src/stream/ngx_stream_map_module.c +++ b/src/stream/ngx_stream_map_module.c @@ -392,8 +392,9 @@ ngx_stream_map(ngx_conf_t *cf, ngx_command_t *dummy, void *conf) { ctx->hostnames = 1; return NGX_CONF_OK; + } - } else if (cf->args->nelts != 2) { + if (cf->args->nelts != 2) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid number of the map parameters"); return NGX_CONF_ERROR; |