Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unnecessary exists() check, minor formatting

  • Loading branch information...
commit 779e6c6508b3fd1c923cd18270604b2d19b5fba5 1 parent ff98bc6
Jim Davis authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/Bot/Pastebot/Server/Http.pm
View
8 lib/Bot/Pastebot/Server/Http.pm
@@ -381,10 +381,12 @@ sub httpd_session_got_query {
my $store = is_true($query->{store});
my %flags;
for my $flag (@flag_names) {
- $flags{$flag} = $store || exists $query ->{$flag} ? is_true($query ->{$flag}) :
- exists $cookie->{$flag} ? is_true($cookie->{$flag}) : 0;
+ $flags{$flag} = $store || exists $query->{$flag}
+ ? is_true( $query->{$flag})
+ : is_true($cookie->{$flag});
}
- my $tx = is_true($query->{tx});
+
+ my $tx = is_true($query->{tx});
my $variants = [
['html', 1.000, 'text/html', undef, 'us-ascii', 'en', undef],
Please sign in to comment.
Something went wrong with that request. Please try again.