Changeset d51047d in lab.git for Dev/github/GitHubBackup.pm


Ignore:
Timestamp:
Aug 21, 2013 9:38:29 AM (11 years ago)
Author:
Ken-ichi Mito <mitty@…>
Branches:
master
Children:
c5b427c
Parents:
49aca65
git-author:
Ken-ichi Mito <mitty@…> (08/21/13 09:37:11)
git-committer:
Ken-ichi Mito <mitty@…> (08/21/13 09:38:29)
Message:

utils::get returns '[]' while json_api gives no results

  • GitHubBackup->repos gives '[]' if no repositories
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/github/GitHubBackup.pm

    r49aca65 rd51047d  
    3333     
    3434    my $page = 1; 
    35     my $data; 
     35    my $data = []; 
    3636    while(1) { 
    3737        my $result = json_api("$url?per_page=100&page=$page$parameters"); 
     
    103103    my $self = shift; 
    104104    return $self->{repos} if ($self->{repos}); 
     105     
     106    $self->{repos} = []; 
    105107     
    106108    my $account = $self->account or croak "account is not set"; 
Note: See TracChangeset for help on using the changeset viewer.