Yes, but I think it's the only place where unless is used with a block (not
in a postfix condition).

Thanks for the updates!


2013/1/8 David Golden <notifications@github.com>

> In lib/Dancer/Core/Context.pm:
>
> > @@ -114,22 +115,80 @@ sub _build_session {
> >        if ! defined $engine;
> >
> >      # find the session cookie if any
> > -    my $session_id;
> > -    my $session_cookie = $self->cookie('dancer.session');
> > -    if (defined $session_cookie) {
> > -        $session_id = $session_cookie->value;
> > -    }
> > -
> > -    # if we have a session cookie, try to retrieve the session
> > -    if (defined $session_id) {
> > -        eval { $session = $engine->retrieve(id => $session_id) };
> > -        croak "Fail to retreive session: $@"
> > -          if $@ && $@ !~ /Unable to retrieve session/;
> > +    unless ( $self->_destroyed_session ) {
>
> FWIW, it's not the only place in the code that qr/unless (/ appears.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/PerlDancer/Dancer2/pull/150/files#r2576035>.
>
>