Skip to content

Commit

Permalink
Little bit of tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Feb 29, 2016
1 parent a313c18 commit f8a3bfc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions step12/Todo/lib/Todo.pm
Expand Up @@ -8,10 +8,6 @@ use DateTime::Format::Strptime;
use DateTime;

get '/' => sub {
my $dt_parser = DateTime::Format::Strptime->new(
pattern => '%Y-%m-%d',
);

my @items = schema->resultset('Item')->search(
undef, { order_by => 'due' }
)->all;
Expand Down Expand Up @@ -92,7 +88,7 @@ post '/edit/:id' => sub {
description => 'Description',
due => 'Due Date',
);
foreach (qw[title description due]) {
foreach (keys %cols) {
unless ($new_item->{$_} = body_parameters->get($_)) {
push @errors, $cols{$_};
}
Expand Down

0 comments on commit f8a3bfc

Please sign in to comment.