From 3bca1909de7b9860bb4555a70dda629778d00714 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 29 Dec 2015 13:58:56 -0800 Subject: [PATCH] Handle completely uninitialized repo descriptions better by explicitly converting undef to "" (avoids warnings about "Use of uninitialized value $currentText") --- push.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/push.pl b/push.pl index c3f8d463b..e540c6e3a 100755 --- a/push.pl +++ b/push.pl @@ -118,6 +118,8 @@ while (my $repo = shift) { # '/library/hylang', '/tianon/perl', etc warn 'failed to get: ' . $repoUrl and next unless $repoTx->success; my $repoDetails = $repoTx->res->json; + $repoDetails->{description} //= ''; + $repoDetails->{full_description} //= ''; my $hubShort = prompt_for_edit($repoDetails->{description}, $repoName . '/README-short.txt'); my $hubLong = prompt_for_edit($repoDetails->{full_description}, $repoName . '/README.md', $hubLengthLimit);