Skip to content

Instantly share code, notes, and snippets.

@cbvi
Last active February 5, 2024 01:04
Show Gist options
  • Save cbvi/d67841603f9234503216144c2561ee12 to your computer and use it in GitHub Desktop.
Save cbvi/d67841603f9234503216144c2561ee12 to your computer and use it in GitHub Desktop.
diff --git a/src/alire/alire-properties-from_toml.adb b/src/alire/alire-properties-from_toml.adb
index 44e020ea..dabd940c 100644
--- a/src/alire/alire-properties-from_toml.adb
+++ b/src/alire/alire-properties-from_toml.adb
@@ -17,8 +17,9 @@ package body Alire.Properties.From_TOML is
Strict : Boolean)
return Conditional.Properties
is
+ Props : Conditional.Properties;
begin
- return Props : Conditional.Properties do
+ -- return Props : Conditional.Properties do
loop
declare
function Is_Valid is
@@ -29,7 +30,7 @@ package body Alire.Properties.From_TOML is
Ada_Key : constant String := TOML_Adapters.Adafy (Key);
begin
if Key = "" then
- return; -- No more keys
+ return Props; -- No more keys
end if;
-- Extract property name from string
@@ -102,7 +103,7 @@ package body Alire.Properties.From_TOML is
end loop Process_Property;
end;
end loop;
- end return;
+ -- end return;
end Loader;
end Alire.Properties.From_TOML;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment