Skip to content

Avoid a nil result#246

Open
ryanfaerman wants to merge 1 commit intojulienXX:masterfrom
ryanfaerman:patch-1
Open

Avoid a nil result#246
ryanfaerman wants to merge 1 commit intojulienXX:masterfrom
ryanfaerman:patch-1

Conversation

@ryanfaerman
Copy link
Copy Markdown

This prevents throwing our stack just because the result is nil.

This prevents throwing our stack just because the `result` is `nil`.
@@ -54,6 +54,7 @@ def self.execute(verbose, options)
# notify_result('@timeout', {'reply' => true}) #=> '@timeout'
# notify_result('I may like pie', {}) #=> :i_may_like_pie
def notify_result(result, options, always_string = false)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about giving a default value to result instead?

@y-yagi
Copy link
Copy Markdown

y-yagi commented May 14, 2018

@ryanfaerman Are you still interested in this PR? I encountered this issue too, and want to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants