Skip to content

Commit 563aa6a

Browse files
committed
Better variable names
1 parent 09dfa0a commit 563aa6a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/WWW/Mailgun.pm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ sub send {
105105
return from_json($r->decoded_content);
106106
}
107107

108-
=head2 _prepare_content($msg) : \@content
108+
=head2 _prepare_content($option__values) : \@content
109109
110-
Given a $msg hashref, transform it to an arrayref suitable for sending
111-
as multipart/form-data. The core logic here is that array references are
112-
modified from:
110+
Given a $option__values hashref, transform it to an arrayref suitable for
111+
sending as multipart/form-data. The core logic here is that array references
112+
are modified from:
113113
114114
option => [ value1, value2, ... ]
115115
@@ -120,12 +120,12 @@ to
120120
=cut
121121

122122
sub _prepare_content {
123-
my ($msg) = @_;
123+
my ($option__values) = @_;
124124

125125
my $content = [];
126126
my $option__count = {};
127127

128-
while (my ($option, $value) = each %$msg) {
128+
while (my ($option, $value) = each %$option__values) {
129129
$option = $OPTION__ALIAS->{$option} || $option;
130130
my $values = ref $value ? $value : [$value];
131131

0 commit comments

Comments
 (0)