-
-
Save apeiros/d1a7ac3d3f313a804b1536eb3f867910 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 1 | |
if @id == -1 | |
@id = sent_id | |
else | |
raise CallError.new("Sent id does not match previous id") if @id != sent_id | |
end | |
## 2 | |
@id = sent_id if @id == -1 | |
raise CallError.new("Sent id does not match previous id") if @id != sent_id | |
## 3 | |
if @id == -1 | |
@id = sent_id | |
elsif @id != sent_id | |
raise CallError.new("Sent id does not match previous id") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment