Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
&& already casts to boolean
  • Loading branch information
kraih committed Jun 30, 2017
1 parent 6841633 commit 91f1b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Log.pm
Expand Up @@ -19,7 +19,7 @@ has history => sub { [] };
has level => 'debug';
has max_history_size => 10;
has 'path';
has short => sub { !!$ENV{JOURNAL_STREAM} && !shift->path };
has short => sub { $ENV{JOURNAL_STREAM} && !shift->path };

# Supported log levels
my %LEVEL = (debug => 1, info => 2, warn => 3, error => 4, fatal => 5);
Expand Down

0 comments on commit 91f1b56

Please sign in to comment.