Skip to content

Commit e89ee07

Browse files
committed
Remove dead code from upload example:
This is a port of a commit by racke (GH #1329).
1 parent ebaf242 commit e89ee07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Dancer2/Manual.pod

+1-2
Original file line numberDiff line numberDiff line change
@@ -1292,8 +1292,7 @@ The objects are accessible within the route handlers using the C<upload>
12921292
keyword:
12931293

12941294
post '/upload' => sub {
1295-
my $upload_dir = "MyApp/UPLOADS";
1296-
my $upload = upload('file_input_name'); # upload object
1295+
my $upload = upload('file_input_name'); # upload object
12971296
$upload->copy_to('Uploads/');
12981297
};
12991298

0 commit comments

Comments
 (0)