Skip to content

Commit a6e9e11

Browse files
doc: fixed code style and test case style found by ngx-releng.
1 parent aeaecd6 commit a6e9e11

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ before_script:
100100
script:
101101
- export PATH=$PWD/work/nginx/sbin:$PWD/openresty-devel-utils:$PATH
102102
- ngx-releng > check.txt || true
103-
- lines=`wc -l check.txt | awk '{print $1}'`; if [ $lines -gt 13 ]; then cat check.txt; exit 1; fi
103+
- lines=`wc -l check.txt | awk '{print $1}'`; if [ $lines -gt 5 ]; then cat check.txt; exit 1; fi
104104
- sudo iptables -I OUTPUT 1 -p udp --dport 10086 -j REJECT
105105
- sudo iptables -I OUTPUT -p tcp --dst 127.0.0.2 --dport 12345 -j DROP
106106
- sudo iptables -I OUTPUT -p udp --dst 127.0.0.2 --dport 12345 -j DROP

src/ngx_http_lua_util.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,9 @@ ngx_http_lua_new_thread(ngx_http_request_t *r, lua_State *L, int *ref)
388388
}
389389
#endif
390390

391-
} else {
392-
#else
393-
{
391+
} else
394392
#endif
393+
{
395394
base = lua_gettop(L);
396395

397396
lua_pushlightuserdata(L, ngx_http_lua_lightudata_mask(

src/ngx_http_lua_util.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,9 @@ ngx_http_lua_new_cached_thread(lua_State *L, lua_State **out_co,
648648
lua_rawget(L, LUA_REGISTRYINDEX);
649649
lua_rawgeti(L, -1, co_ref);
650650

651-
} else {
652-
#else
653-
{
651+
} else
654652
#endif
653+
{
655654
lua_pushlightuserdata(L, ngx_http_lua_lightudata_mask(
656655
coroutines_key));
657656
lua_rawget(L, LUA_REGISTRYINDEX);

t/166-worker-thread.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ false : module 'hello' not found.*
271271

272272

273273

274-
=== TEST 10 the number of Lua VM exceeds the pool size
274+
=== TEST 10: the number of Lua VM exceeds the pool size
275275
--- main_config
276276
thread_pool testpool threads=100;
277277
--- http_config eval: $::HttpConfig
@@ -348,7 +348,7 @@ GET /t
348348

349349

350350

351-
=== TEST 11 kill uthread before worker thread callback
351+
=== TEST 11: kill uthread before worker thread callback
352352
--- main_config
353353
thread_pool testpool threads=100;
354354
--- http_config eval: $::HttpConfig

0 commit comments

Comments
 (0)