Skip to content

Commit f81bc86

Browse files
committed
Fix plugin loader when no directory is found
The needed variable was no longer exported since we exited the script to early on this condition.
1 parent c27078e commit f81bc86

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/CSS/Sass/Plugins.pm

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ use warnings;
2626
package CSS::Sass::Plugins;
2727
our $VERSION = "3.4.1";
2828
################################################################################
29-
3029
# collect plugins
3130
our %plugins;
31+
################################################################################
32+
use Exporter 'import'; # gives you Exporter's import() method directly
33+
our @EXPORT = qw(%plugins); # symbols to export by default
34+
################################################################################
35+
3236
# prefix to append to root path
3337
my $path = '/auto/CSS/Sass/plugins/';
3438
# get our own path for module file
@@ -47,9 +51,6 @@ while (my $item = readdir($dh)) {
4751
$plugins{$item} = $root . $item
4852
}
4953

50-
use Exporter 'import'; # gives you Exporter's import() method directly
51-
our @EXPORT = qw(%plugins); # symbols to export by default
52-
5354
################################################################################
5455
################################################################################
5556
1;

0 commit comments

Comments
 (0)