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
|
||||||
end
|
end
|
||||||
|
|
||||||
# Main script
|
def main
|
||||||
if __FILE__ == $PROGRAM_NAME
|
|
||||||
puts <<~MESSAGE
|
puts <<~MESSAGE
|
||||||
MCP HTTP Client Example
|
MCP HTTP Client Example
|
||||||
Make sure the HTTP server is running (ruby examples/http_server.rb)
|
Make sure the HTTP server is running (ruby examples/http_server.rb)
|
||||||
|
|
@ -182,3 +181,5 @@ if __FILE__ == $PROGRAM_NAME
|
||||||
client.close_session
|
client.close_session
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
main
|
||||||
|
|
|
||||||
|
|
@ -176,4 +176,4 @@ def main
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
main if __FILE__ == $PROGRAM_NAME
|
main
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue