Skip to content

Commit

Permalink
Tidies Account controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Jan 31, 2014
1 parent 3033db7 commit 2b2f0ff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/MetaCPAN/Web/Controller/Account.pm
Expand Up @@ -45,21 +45,24 @@ sub profile : Local {
return unless ( $req->method eq 'POST' );

my $data = $author;
$data->{blog} = $req->param('blog.url')
$data->{blog}
= $req->param('blog.url')
? [
pairwise { { url => $a, feed => $b } }
@{ [ $req->param('blog.url') ] },
@{ [ $req->param('blog.feed') ] }
]
: undef;
$data->{donation} = $req->param('donation.name')
$data->{donation}
= $req->param('donation.name')
? [
pairwise { { name => $a, id => $b } }
@{ [ $req->param('donation.name') ] },
@{ [ $req->param('donation.id') ] }
]
: undef;
$data->{profile} = $req->param('profile.name')
$data->{profile}
= $req->param('profile.name')
? [
pairwise { { name => $a, id => $b } }
@{ [ $req->param('profile.name') ] },
Expand Down

0 comments on commit 2b2f0ff

Please sign in to comment.