lib/fog/aliyun/models/compute/route_tables.rb in fog-aliyun-0.3.0 vs lib/fog/aliyun/models/compute/route_tables.rb in fog-aliyun-0.3.1
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'fog/core/collection'
require 'fog/aliyun/models/compute/route_table'
module Fog
module Compute
@@ -15,12 +17,10 @@
load(data)
end
def get(routeTableId)
requires :v_router
- if routeTableId
- self.class.new(service: service, v_router: v_router).all(routeTableId: routeTableId)[0]
- end
+ self.class.new(service: service, v_router: v_router).all(routeTableId: routeTableId)[0] if routeTableId
end
end
end
end
end