Skip to content

Commit 40bc983

Browse files
Copilotkitsonk
andcommitted
style: expand single-line if statement in get ips()
Co-authored-by: kitsonk <1282577+kitsonk@users.noreply.github.com>
1 parent 33a586b commit 40bc983

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ export class Request {
134134
* `Forwarded` (RFC 7239) if present, otherwise `X-Forwarded-For`. When
135135
* `false` an empty array is returned. */
136136
get ips(): string[] {
137-
if (!this.#proxy) return [];
137+
if (!this.#proxy) {
138+
return [];
139+
}
138140
const forwarded = this.#getForwarded();
139141
if (forwarded) {
140142
return forwarded

0 commit comments

Comments
 (0)