Skip to content

Commit

Permalink
code review fixes - "eol" improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 8, 2015
1 parent 61d2419 commit 9a8cd8d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/OnlineUpdateDialogs.ycp
Expand Up @@ -373,10 +373,9 @@ some of them might not work as expected.");
list<map> eol_products()
{
integer time_now = time();
list<map> products = installed_products();

return (list<map>)filter(map p, products, {
return p["eol"]:nil != nil && tointeger(p["eol"]:"0") < time_now;
return (list<map>)filter(map p, installed_products(), {
return p["eol"]:nil != nil && p["eol"]:-1 < time_now;
});
}

Expand Down Expand Up @@ -419,13 +418,9 @@ Contact us if you need further assistance."
list<map> products_to_report = eol_products();
y2milestone("Number of products out of support: %1", size(products_to_report));

if (size(products_to_report) == 0)
{
return;
}
if (size(products_to_report) == 0) return;

list<string> product_names = [];

foreach(map product, products_to_report, {
y2milestone("Product out of support: %1", product);

Expand Down

0 comments on commit 9a8cd8d

Please sign in to comment.