Skip to content

Commit

Permalink
Merge pull request #3 from paultcochrane/pr/fix-basename-usage
Browse files Browse the repository at this point in the history
Use `basename` on IO::Path object directly
  • Loading branch information
dagurval committed Jun 8, 2015
2 parents 1e45a56 + 182f97c commit 762f455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Image/Resize.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Image::Resize {


method !get-ext($path) {
$path.IO.path.basename ~~ /'.' (\w+)/;
$path.IO.basename ~~ /'.' (\w+)/;
my Str $ext = ~$/[0];
die "Path '$path' is missing image extension (.png, .jpg etc.)"
unless $ext;
Expand Down

0 comments on commit 762f455

Please sign in to comment.