Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix rubocop issues.
Sebastian Palma3787537e4f28
diff --git a/api/app/models/concerns/spree/webhooks/has_webhooks.rb b/api/app/models/concerns/spree/webhooks/has_webhooks.rbindex 479d3699cd..91aa3fd481 100644--- a/api/app/models/concerns/spree/webhooks/has_webhooks.rb+++ b/api/app/models/concerns/spree/webhooks/has_webhooks.rb@@ -30,7 +30,7 @@ module Spreedef payloadresource_serializer.new(self).serializable_hash- rescue NameError, NoMethodError+ rescue NameError{}enddiff --git a/api/app/services/spree/webhooks/endpoints/make_request.rb b/api/app/services/spree/webhooks/endpoints/make_request.rbindex f5f5c5408c..54681d8d10 100644--- a/api/app/services/spree/webhooks/endpoints/make_request.rb+++ b/api/app/services/spree/webhooks/endpoints/make_request.rb@@ -4,11 +4,13 @@ module Spreeclass MakeRequestprepend Spree::ServiceModule::Base+ # rubocop:disable Lint/UnusedMethodArgumentdef call(body:, url:)return failure(false) if body == ''run :make_requestend+ # rubocop:enable Lint/UnusedMethodArgumentprivatediff --git a/core/app/validators/url_validator.rb b/core/app/validators/url_validator.rbindex 6b5a02d60a..8c96d009fd 100644--- a/core/app/validators/url_validator.rb+++ b/core/app/validators/url_validator.rb@@ -16,6 +16,6 @@ class UrlValidator < ActiveModel::EachValidatorrescue URI::InvalidURIErrorreturn falseend- uri.host.present? && uri.kind_of?(URI::HTTP)+ uri.host.present? && uri.is_a?(URI::HTTP)endend