Skip to content

Commit

Permalink
a defined check is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 12, 2016
1 parent c2f420b commit 3648a7a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

7.02 2016-08-05
7.02 2016-12

7.01 2016-08-01
- Improved support for systemd.
Expand Down
2 changes: 1 addition & 1 deletion examples/connect-proxy.pl
Expand Up @@ -14,7 +14,7 @@

# Write chunk from client to server
my $server = $buffer{$id}{connection};
return Mojo::IOLoop->stream($server)->write($chunk) if defined $server;
return Mojo::IOLoop->stream($server)->write($chunk) if $server;

# Read connect request from client
my $buffer = $buffer{$id}{client} .= $chunk;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/daemon_ipv6_tls.t
Expand Up @@ -40,7 +40,7 @@ my $id = Mojo::IOLoop->server(

# Write chunk from client to server
my $server = $buffer{$id}{connection};
return Mojo::IOLoop->stream($server)->write($chunk) if defined $server;
return Mojo::IOLoop->stream($server)->write($chunk) if $server;

# Read connect request from client
my $buffer = $buffer{$id}{client} .= $chunk;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/websocket_proxy.t
Expand Up @@ -54,7 +54,7 @@ my $id = Mojo::IOLoop->server(

# Write chunk from client to server
my $server = $buffer{$id}{connection};
return Mojo::IOLoop->stream($server)->write($chunk) if defined $server;
return Mojo::IOLoop->stream($server)->write($chunk) if $server;

# Read connect request from client
my $buffer = $buffer{$id}{client} .= $chunk;
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/websocket_proxy_tls.t
Expand Up @@ -72,7 +72,7 @@ my $id = Mojo::IOLoop->server(

# Write chunk from client to server
my $server = $buffer{$id}{connection};
return Mojo::IOLoop->stream($server)->write($chunk) if defined $server;
return Mojo::IOLoop->stream($server)->write($chunk) if $server;

# Read connect request from client
my $buffer = $buffer{$id}{client} .= $chunk;
Expand Down

0 comments on commit 3648a7a

Please sign in to comment.