Skip to content

Commit 7420b8e

Browse files
committed
Remove trailing whitespaces.
Change-Id: I4c63b363cc922521eb2e48e93d1db0a4e4c0f105 Signed-off-by: Piotr Sikora <[email protected]>
1 parent 77bef8e commit 7420b8e

6 files changed

+8
-8
lines changed

TODO.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Features that sooner or later will be added to `ngx_postgres`:
1515

1616
* Use `PQescapeStringConn()` instead of `PQescapeString()`, this will
1717
require lazy-evaluation of the variables after we acquire connection,
18-
but before we send query to the database.
18+
but before we send query to the database.
1919
Notes: Don't break `$postgres_query`.
2020

2121
* Cancel long-running queries using `PQcancel()`.

src/ngx_postgres_module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ ngx_conf_enum_t ngx_postgres_requirement_options[] = {
214214
ngx_postgres_rewrite_enum_t ngx_postgres_rewrite_handlers[] = {
215215
{ ngx_string("no_changes"), 0, ngx_postgres_rewrite_changes },
216216
{ ngx_string("changes"), 1, ngx_postgres_rewrite_changes },
217-
{ ngx_string("no_rows"), 2, ngx_postgres_rewrite_rows },
217+
{ ngx_string("no_rows"), 2, ngx_postgres_rewrite_rows },
218218
{ ngx_string("rows"), 3, ngx_postgres_rewrite_rows },
219219
{ ngx_null_string, 0, NULL }
220220
};
@@ -304,7 +304,7 @@ ngx_postgres_create_loc_conf(ngx_conf_t *cf)
304304
return NULL;
305305
}
306306

307-
/*
307+
/*
308308
* set by ngx_pcalloc():
309309
*
310310
* conf->upstream.* = 0 / NULL

src/ngx_postgres_processor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ ngx_postgres_upstream_get_result(ngx_http_request_t *r, ngx_connection_t *pgxc,
339339
dd("returning NGX_HTTP_INTERNAL_SERVER_ERROR");
340340
return NGX_HTTP_INTERNAL_SERVER_ERROR;
341341
}
342-
342+
343343
dd("result received successfully, cols:%d rows:%d",
344344
PQnfields(res), PQntuples(res));
345345

src/ngx_postgres_rewrite.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ngx_postgres_rewrite_changes(ngx_http_request_t *r,
7070
dd("entering");
7171

7272
pgctx = ngx_http_get_module_ctx(r, ngx_postgres_module);
73-
73+
7474
if ((pgrcf->key % 2 == 0) && (pgctx->var_affected == 0)) {
7575
/* no_changes */
7676
dd("returning");

src/ngx_postgres_upstream.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ ngx_postgres_upstream_init_peer(ngx_http_request_t *r,
211211
pgdt->query = query->sv;
212212
}
213213

214-
/* set $postgres_query */
214+
/* set $postgres_query */
215215
pgctx->var_query = pgdt->query;
216216

217217
dd("returning NGX_OK");
@@ -471,7 +471,7 @@ ngx_postgres_upstream_get_peer(ngx_peer_connection_t *pc, void *data)
471471
failed:
472472
/* a bit hack-ish way to return error response (setup part) */
473473
pc->connection = ngx_get_connection(0, pc->log);
474-
474+
475475
dd("returning NGX_AGAIN (NGX_ERROR)");
476476
return NGX_AGAIN;
477477
#endif

src/ngx_postgres_util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright (c) 2010, FRiCKLE Piotr Sikora <[email protected]>
33
* Copyright (c) 2009-2010, Yichun Zhang <[email protected]>
44
* Copyright (C) 2002-2010, Igor Sysoev

0 commit comments

Comments
 (0)