Skip to content

Commit f67767b

Browse files
Code simplifications to address #448
1 parent ac0cbe2 commit f67767b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

third_party/build_fatpack/build.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
my $cmd = "fatpack pack $input_file 2>/dev/null > $output_file";
4141

4242
my $exit = system($cmd);
43-
$exit = $exit >> 8;
43+
$exit >>= 8;
4444

4545
rmdir("fatlib"); # fatpack leaves empty fatlib dirs so we remove them
4646
my $size = -s $output_file;

third_party/cli_bench/cli_bench.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ sub average {
114114
}
115115

116116
my $count = scalar(@_);
117-
$ret = $ret / $count;
117+
$ret /= $count;
118118

119119
return $ret;
120120
}

0 commit comments

Comments
 (0)