Skip to content

Commit

Permalink
Revert change to fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Jan 11, 2025
1 parent a21f37b commit cc50518
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/ruby_saml/slo_logoutrequest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,17 @@ def issuer
# @return [Time|nil] Gets the NotOnOrAfter Attribute value if exists.
#
def not_on_or_after
return @not_on_or_after if defined?(@not_on_or_after)

node = REXML::XPath.first(
document,
"/p:LogoutRequest",
{ "p" => PROTOCOL }
)
@not_on_or_after ||= begin
node = REXML::XPath.first(
document,
"/p:LogoutRequest",
{ "p" => PROTOCOL }
)

@not_on_or_after = if (value = node&.attributes&.[]("NotOnOrAfter"))
Time.parse(value)
end
if (value = node&.attributes&.[]("NotOnOrAfter"))
Time.parse(value)
end
end
end

# @return [Array] Gets the SessionIndex if exists (Supported multiple values). Empty Array if none found
Expand Down

0 comments on commit cc50518

Please sign in to comment.