Skip to content

Commit

Permalink
Address remarks made
Browse files Browse the repository at this point in the history
  • Loading branch information
stdweird committed Aug 13, 2015
1 parent c641b1b commit bf24658
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/conf/quattor-ccm
Expand Up @@ -12,7 +12,7 @@ _quattor_find_bin()
{
local dir bin fn
fn="$1"
# use the "slow" sed here

for dir in `echo $PATH | sed 's/:/ /g'`; do
bin="$dir/$fn"
if [ -x "$bin" ]; then
Expand Down
3 changes: 1 addition & 2 deletions src/main/perl/Options.pm
Expand Up @@ -281,8 +281,7 @@ sub add_actions
my ($self, $newactions) = @_;

while (my ($action, $help) = each %$newactions) {
my $method = $self->can("action_$action");
if($method) {
if($self->can("action_$action")) {
$_actions->{$action} = $help;
} else {
$self->warn("Not adding non-existing action $action");
Expand Down

0 comments on commit bf24658

Please sign in to comment.