From 14b157c9633905f382ae50a1cde48b1c800ff1a8 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Mon, 7 May 2018 21:46:57 +0200 Subject: [PATCH] Fixed Conditional with Empty Else branch --- src/alire-conditional_values.adb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/alire-conditional_values.adb b/src/alire-conditional_values.adb index 2d5ad5b9..8a1818f5 100644 --- a/src/alire-conditional_values.adb +++ b/src/alire-conditional_values.adb @@ -183,8 +183,10 @@ package body Alire.Conditional_Values is begin if Cond.Condition.Check (Against) then return Evaluate (Cond.Then_Value.Element); - else + elsif not Cond.Else_Value.Is_Empty then return Evaluate (Cond.Else_Value.Element); + else + return Empty; end if; end; when Value =>