IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2007, 1:21:22 PM (19 years ago)
Author:
jhoblitt
Message:

fix "byte" length file checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/lib/DataStore/File.pm

    r8722 r15265  
    11# Copyright (C) 2006  Joshua Hoblitt
    22#
    3 # $Id: File.pm,v 1.14 2006-08-31 22:58:34 jhoblitt Exp $
     3# $Id: File.pm,v 1.15 2007-10-09 23:21:22 jhoblitt Exp $
    44
    55package DataStore::File;
     
    232232    my $response = $ua->request($request, $filename);
    233233
    234     if ($response->is_success) {
     234    IS_SUCCESS: if ($response->is_success) {
    235235        # check size
    236236        if (defined $self->bytes) {
     
    243243                # set the filename to undef to indicate an error
    244244                $filename = undef;
    245                 last;
     245                last IS_SUCCESS;
    246246            }
    247247        }
     
    256256                # set the filename to undef to indicate an error
    257257                $filename = undef;
    258                 last;
     258                last IS_SUCCESS;
    259259            }
    260260        }
Note: See TracChangeset for help on using the changeset viewer.