Skip to content

mark some subroutine arguments as optional #711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: signatures
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Dist/Zilla/Dist/Builder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ like matching the glob C<Your-Dist-*>.

=cut

sub clean ($self, $dry_run) {
sub clean ($self, $dry_run = undef) {
require File::Path;
for my $x (grep { -e } '.build', glob($self->name . '-*')) {
if ($dry_run) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/Util/AuthorDeps.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use List::Util 1.45 ();

use namespace::autoclean;

sub format_author_deps ($reqs, $versions) {
sub format_author_deps ($reqs, $versions = undef) {
my $formatted = '';
foreach my $rec (@{ $reqs }) {
my ($mod, $ver) = each(%{ $rec });
Expand All @@ -19,7 +19,7 @@ sub format_author_deps ($reqs, $versions) {
return $formatted;
}

sub extract_author_deps ($root, $missing) {
sub extract_author_deps ($root, $missing = undef) {
my $ini = path($root, 'dist.ini');

die "dzil authordeps only works on dist.ini files, and you don't have one\n"
Expand Down