Skip to content

Commit

Permalink
cleaning in code lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kiamazi committed Jan 10, 2022
1 parent 7f0e62b commit a99b0d4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bin/kateb
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,6 @@ if ($ARGV[0] =~ m/^self-upgrade$/) {
exit 3;
}

#use LWP::UserAgent;
#my $ua = LWP::UserAgent->new();
#my $response = $ua->get('https://fastapi.metacpan.org/v1/module/kateb?fields=version');
# unless ($response->is_success) {
# say "Error: " . $response->status_line;
# exit 3;
# }

use JSON::PP;
my $latest_version = decode_json( $response->{content} )->{version};
unless (version->parse($latest_version)->numify > version->parse($version)->numify)
Expand Down

0 comments on commit a99b0d4

Please sign in to comment.