Skip to content

Commit

Permalink
Remove unused branch for secret_key check
Browse files Browse the repository at this point in the history
This commit removes an unused code block to test if secret_key
is set.  This validation already happens in Config::_validate and
will already die if not set.
  • Loading branch information
renderorange committed Jul 2, 2024
1 parent 78d9725 commit f81e931
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Pasteburn.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ BEGIN {
my $conf = Pasteburn::Config->get();
config->{engines}{session}{Cookie}{secret_key} = $conf->{cookie}{secret_key};

unless ( config->{engines}{session}{Cookie}{secret_key} ) {
die("FATAL: session Cookie secret_key is not set");
}

set secret => $conf->{secret};
set passphrase => $conf->{passphrase};

Expand Down

0 comments on commit f81e931

Please sign in to comment.