Skip to content

Commit

Permalink
more no tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiroy committed Nov 23, 2017
1 parent e89257a commit 2e408c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/SSH/PublicKey.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ sub restrictions {
my ($self, @parts) = (shift);
push @parts, sprintf('command="%s"', $self->command) if $self->command;
push @parts, (map { $self->$_ ? $self->_attr_to_option($_) : () }
qw{no_pty no_port_forwarding no_X11_forwarding no_agent_forwarding});
qw{no_pty no_port_forwarding no_X11_forwarding no_agent_forwarding});
return join ',' => @parts;
};
}

sub _attr_to_option {
local $_ = $_[1] or return;
Expand All @@ -68,10 +68,10 @@ sub _parse {
return $self unless $self->{val};
my $RE = $self->_parse_re;
if ($self->{val} =~ m/$RE/) {
$self->_restrictions($1)->type($2)->key($3)->comment($4);
chop($self->{_restrictions}) if $1;
$self->_restrictions($1)->type($2)->key($3)->comment($4);
chop($self->{_restrictions}) if $1;
} else {
say STDERR "Failed to parse: ", $self->{val};
say STDERR "Failed to parse: ", $self->{val};
}
return $self;
}
Expand Down
2 changes: 1 addition & 1 deletion t/key-db-crud-update.t
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ like $stderr, qr/^no command to update/m, 'failed update message';
$app = $t->app_instance(@opts);
$app->key_files->map(
sub {
# __PACKAGE__ needs a package definition above
# __PACKAGE__ needs a package definition above
my $exp = data_section(__PACKAGE__, $_->basename);
my $obs = $_->slurp;
is $obs, $exp, 'content match ' . $_->basename;
Expand Down

0 comments on commit 2e408c9

Please sign in to comment.