summaryrefslogtreecommitdiff
path: root/lib/action_file_executor.rb
diff options
context:
space:
mode:
authorSzymon Szukalski <szymon@skas.io>2024-10-25 12:05:03 +1100
committerSzymon Szukalski <szymon@skas.io>2024-10-25 12:05:03 +1100
commit5d5ca66762513dccfbc4e76782e81bc593258c68 (patch)
tree4ad253977f23d0cb08b4d65e6895151aceb4871e /lib/action_file_executor.rb
parent29fe91901a188af552a0bbaeb59eaf056fbe385d (diff)
Update README and fix incorrect outputs
- Don't output anything if the relationship is unsupported - Fail if we're adding a child via the father to a family
Diffstat (limited to 'lib/action_file_executor.rb')
-rw-r--r--lib/action_file_executor.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/action_file_executor.rb b/lib/action_file_executor.rb
index 2354dd7..701ad02 100644
--- a/lib/action_file_executor.rb
+++ b/lib/action_file_executor.rb
@@ -72,7 +72,8 @@ class ActionFileExecutor
when 'ADD_CHILD'
puts FamilyTree.instance.add_child(*params)
when 'GET_RELATIONSHIP'
- puts FamilyTree.instance.get_relationship(*params)
+ result = FamilyTree.instance.get_relationship(*params)
+ result && puts(result)
end
end