Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove redundant returns

  • Loading branch information...
commit 0af0f6da9b0ce12651e0edcbac8fc4daacdc9751 1 parent 00360dc
@ryandoyle authored
Showing with 5 additions and 10 deletions.
  1. +5 −10 lib/mcc/client.rb
View
15 lib/mcc/client.rb
@@ -13,28 +13,23 @@ def initialize(server)
end
def get_instances(opts = {})
- res = @rpc.call("openvz.get_instances", opts)
- return res
+ @rpc.call("openvz.get_instances", opts)
end
def get_images()
- res = @rpc.call("openvz.get_images")
- return res
+ @rpc.call("openvz.get_images")
end
def get_instance_types()
- res = @rpc.call("openvz.get_instance_types")
- return res
+ @rpc.call("openvz.get_instance_types")
end
def run_instance(template, type, pubkey, name)
- res = @rpc.call("openvz.run_instance", template, type, pubkey, name)
- return res
+ @rpc.call("openvz.run_instance", template, type, pubkey, name)
end
def destroy_instance(id)
- res = @rpc.call("openvz.destroy_instance", id)
- return res
+ @rpc.call("openvz.destroy_instance", id)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.