diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-10-10 19:15:08 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-10-10 19:15:08 +0300 |
commit | e4bea2c75c6643f84eaaaae8f7c474e00e943b8a (patch) | |
tree | c4bf6974a62f962ce19978b416eb65941ae4bd68 /src/nxt_conf_validation.c | |
parent | 93438a0d9e61bf382be3b648c0504fcda2f9c748 (diff) | |
download | unit-e4bea2c75c6643f84eaaaae8f7c474e00e943b8a.tar.gz unit-e4bea2c75c6643f84eaaaae8f7c474e00e943b8a.tar.bz2 |
Optimized application type handling.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_conf_validation.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c index 80e1de6f..d7505cd4 100644 --- a/src/nxt_conf_validation.c +++ b/src/nxt_conf_validation.c @@ -267,7 +267,6 @@ nxt_conf_vldt_app(nxt_conf_value_t *conf, nxt_str_t *name, nxt_conf_value_t *value) { nxt_str_t type; - nxt_uint_t n; nxt_thread_t *thread; nxt_conf_value_t *type_value; nxt_app_lang_module_t *lang; @@ -299,12 +298,7 @@ nxt_conf_vldt_app(nxt_conf_value_t *conf, nxt_str_t *name, return NXT_ERROR; } - n = nxt_app_parse_type(&lang->type); - if (n != NXT_APP_UNKNOWN) { - return nxt_conf_vldt_object(conf, value, members[n]); - } - - return NXT_ERROR; + return nxt_conf_vldt_object(conf, value, members[lang->type]); } |