Skip to content

Commit

Permalink
Fixed Perl::Critic issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwills committed May 12, 2012
1 parent 79170f5 commit 5bf3c12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/blame-line
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ my %option = (
help => 0,
VERSION => 0,
);
sub run($);
sub run;

if ( !@ARGV ) {
pod2usage( -verbose => 1 );
Expand All @@ -41,7 +41,6 @@ exit 0;

sub main {


Getopt::Long::Configure('bundling');
GetOptions(
\%option,
Expand Down Expand Up @@ -90,11 +89,12 @@ sub main {
return;
}

sub run($) {
sub run {
my ($cmd) = @_;
my $result;

print "$cmd\n" if $option{test} || $option{verbose};
my $result = `$cmd` if !$option{test};
$result = `$cmd` if !$option{test};

return $result;
}
Expand Down

0 comments on commit 5bf3c12

Please sign in to comment.