Merge pull request #339 from koic/remove_useless_condition_in_examples
Remove useless condition in example
This commit is contained in:
commit
811c56ae80
2 changed files with 4 additions and 3 deletions
|
|
@ -137,8 +137,7 @@ class MCPHTTPClient
|
|||
end
|
||||
end
|
||||
|
||||
# Main script
|
||||
if __FILE__ == $PROGRAM_NAME
|
||||
def main
|
||||
puts <<~MESSAGE
|
||||
MCP HTTP Client Example
|
||||
Make sure the HTTP server is running (ruby examples/http_server.rb)
|
||||
|
|
@ -182,3 +181,5 @@ if __FILE__ == $PROGRAM_NAME
|
|||
client.close_session
|
||||
end
|
||||
end
|
||||
|
||||
main
|
||||
|
|
|
|||
|
|
@ -176,4 +176,4 @@ def main
|
|||
end
|
||||
end
|
||||
|
||||
main if __FILE__ == $PROGRAM_NAME
|
||||
main
|
||||
|
|
|
|||
Loading…
Reference in a new issue