Browse files

simplify sub baile

  • Loading branch information...
1 parent aa701c6 commit 6eb24023093f2c88b162f769726b72c75b5ca564 @moritz moritz committed Apr 6, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/Bailador.pm
View
7 lib/Bailador.pm
@@ -83,13 +83,8 @@ sub dispatch($env) {
}
sub baile is export {
- my $app = sub ($env) {
- return dispatch($env);
- my $res = dispatch($env);
- }
-
given HTTP::Easy::PSGI.new(port => 3000) {
- .app($app);
+ .app(&dispatch);
.run;
}
}

0 comments on commit 6eb2402

Please sign in to comment.