]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ipblocklist-functions.pl: Adjust return codes of the download function
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 15:36:42 +0000 (17:36 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 15:36:42 +0000 (17:36 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ipblocklist-functions.pl

index 943d3fd345c319544eaebbc08ef3c706fcba2168..1206a1b3d1a0688b7b5faf9a5b51101ac2e75926 100644 (file)
@@ -152,10 +152,10 @@ sub download_blocklist ($) {
        my $response = &General::downloader(%settings);
 
        # Abort if the response is empty
-       return "empty_list" unless ($response);
+       return "empty list" unless ($response);
 
        # Return return codes from downloader.
-       return "not_modified" if ($response eq "not modified");
+       return "not modified" if ($response eq "not modified");
 
        # Convert the response into an array to allow
        # processing the items.