Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 2a7f47a

Browse files
committed
Return nil if service doesn't respond to any handling method
Without the explicit nil, the list of attempted methods is returned and calling code may incorrectly interpret this as a valid result and attempt to use it, causing confusing error messages.
1 parent 8dc700a commit 2a7f47a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/cc/service.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def receive
8686
return public_send(method)
8787
end
8888
end
89+
90+
nil
8991
end
9092

9193
private

0 commit comments

Comments
 (0)