Skip to content

Commit

Permalink
Be tolerant with Config.hook-url not ending with '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbkr committed Nov 6, 2023
1 parent 240bd7c commit aaf820a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Config.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ class Config {

has $.log-level;

submethod TWEAK() {
unless $!hook-url.ends-with('/') {
$!hook-url ~= '/';
}
}

method from-config(%config) {
Config.new:
db => %config<db>,
Expand Down

0 comments on commit aaf820a

Please sign in to comment.