Browse Source

remove unnecessary closure

Joel Berger 11 years ago
parent
commit
14fe33b647
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mojolicious/app.pl

+ 1 - 1
mojolicious/app.pl

@@ -64,7 +64,7 @@ helper 'render_query' => sub {
     my $id = int rand 10_000;
     my $end = $delay->begin;
     $world->find_one({_id => $id} => sub {
-      my ($collection, $err, $doc) = @_;
+      my ($world, $err, $doc) = @_;
       if ($update) { $doc->{randomNumber} = 1 + int rand 10_000 };
       push @$r, { id => $id, randomNumber => $doc->{randomNumber} };
       $update ? $world->save($doc, $end) : $end->();