Skip to content

Commit 17adf89

Browse files
committed
remove dependecy Path::Tiny
1 parent e28e82a commit 17adf89

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tool/gen_mackerel_check.pl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
sub replace {
1414
my ($glob, $code) = @_;
1515
for my $file (glob $glob) {
16-
my $content = $code->(path($file)->slurp_utf8, $file);
16+
my $content = $code->(slurp_utf8($file), $file);
1717
$content .= "\n" if $content !~ /\n\z/ms;
1818

19-
my $f = path($file);
2019
# for keeping permission
21-
$f->append_utf8({truncate => 1}, $content);
20+
append_file($file, $content);
2221
}
2322
}
2423

25-
2624
sub retrieve_plugins {
2725
sort map {s/^$PLUGIN_PREFIX//; $_} <$PLUGIN_PREFIX*>;
2826
}

0 commit comments

Comments
 (0)