Skip to content

Commit

Permalink
Perl critic suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jan 18, 2016
1 parent b12deea commit cb45898
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Lystyng.pm
Expand Up @@ -150,4 +150,4 @@ get '/logout' => sub {
redirect '/';
};

true;
1;
4 changes: 3 additions & 1 deletion lib/Lystyng/Schema.pm
Expand Up @@ -17,6 +17,8 @@ __PACKAGE__->load_namespaces;

# You can replace this text with custom code or comments, and it will be preserved on regeneration

use Carp;

sub check_env {
my @errors;
foreach (qw[LYSTYNG_DB_SERVER LYSTYNG_DB_NAME
Expand All @@ -25,7 +27,7 @@ sub check_env {
}

if (@errors) {
die("Missing connection info: @errors");
croak("Missing connection info: @errors");
}
}

Expand Down

0 comments on commit cb45898

Please sign in to comment.