Skip to content

Commit d40af61

Browse files
author
swaroopakkineni
committed
Fix RuboCop PerceivedComplexity warning in execute_request
- Add Metrics/PerceivedComplexity to existing rubocop:disable comment - Remove trailing whitespace in client_retry_spec.rb
1 parent 096c09d commit d40af61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/workos/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def client
1414
end
1515
end
1616

17-
# rubocop:disable Metrics/AbcSize
17+
# rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity
1818
def execute_request(request:, retries: nil)
1919
retries = retries.nil? ? WorkOS.config.max_retries : retries
2020
attempt = 0
@@ -50,7 +50,7 @@ def execute_request(request:, retries: nil)
5050
retry
5151
end
5252
end
53-
# rubocop:enable Metrics/AbcSize
53+
# rubocop:enable Metrics/AbcSize, Metrics/PerceivedComplexity
5454

5555
def get_request(path:, auth: false, params: {}, access_token: nil)
5656
uri = URI(path)

0 commit comments

Comments
 (0)