Skip to content

Commit d9b413b

Browse files
committed
Fix 3 Rubocops
1 parent 941bcac commit d9b413b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/onelogin/ruby-saml/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def issuers
300300
end
301301

302302
nodes = issuer_response_nodes + issuer_assertion_nodes
303-
nodes.map { |node| Utils.element_text(node) }.compact.uniq
303+
nodes.filter_map { |node| Utils.element_text(node) }.uniq
304304
end
305305
end
306306

lib/onelogin/ruby-saml/saml_message.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SamlMessage
2020
ASSERTION = "urn:oasis:names:tc:SAML:2.0:assertion"
2121
PROTOCOL = "urn:oasis:names:tc:SAML:2.0:protocol"
2222

23-
BASE64_FORMAT = %r(\A([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\Z).freeze
23+
BASE64_FORMAT = %r(\A([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\Z)
2424
@@mutex = Mutex.new
2525

2626
# @return [Nokogiri::XML::Schema] Gets the schema object of the SAML 2.0 Protocol schema

lib/onelogin/ruby-saml/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Utils
2727
|
2828
(\d+)W # 8: Weeks
2929
)
30-
$/x.freeze
30+
$/x
3131
UUID_PREFIX = +'_'
3232

3333
# Checks if the x509 cert provided is expired.

0 commit comments

Comments
 (0)