We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5517fc commit 0a19b87Copy full SHA for 0a19b87
lib/line/bot/client.rb
@@ -50,16 +50,14 @@ def endpoint
50
end
51
52
def blob_endpoint
53
- unless @blob_endpoint
54
- if endpoint == Line::Bot::API::DEFAULT_ENDPOINT
55
- @blob_endpoint = Line::Bot::API::DEFAULT_BLOB_ENDPOINT
56
- else
57
- # for backward compatible
58
- @blob_endpoint = endpoint
59
- end
60
61
-
62
- @blob_endpoint
+ return @blob_endpoint if @blob_endpoint
+
+ @blob_endpoint = if endpoint == Line::Bot::API::DEFAULT_ENDPOINT
+ Line::Bot::API::DEFAULT_BLOB_ENDPOINT
+ else
+ # for backward compatible
+ endpoint
+ end
63
64
65
# @return [Hash]
0 commit comments