Skip to content

Commit 19327b4

Browse files
committed
Fix syntax error
1 parent 580979c commit 19327b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/onelogin/ruby-saml/response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,12 +693,12 @@ def validate_conditions
693693
now = Time.now.utc
694694

695695
if not_before && now < (not_before - allowed_clock_drift)
696-
error_msg = "Current time is earlier than NotBefore condition (#{now} < #{not_before}#{" - #{allowed_clock_drift.ceil}s" if allowed_clock_drift > 0})")
696+
error_msg = "Current time is earlier than NotBefore condition (#{now} < #{not_before}#{" - #{allowed_clock_drift.ceil}s" if allowed_clock_drift > 0})"
697697
return append_error(error_msg)
698698
end
699699

700700
if not_on_or_after && now >= (not_on_or_after + allowed_clock_drift)
701-
error_msg = "Current time is on or after NotOnOrAfter condition (#{now} >= #{not_on_or_after}#{" + #{allowed_clock_drift.ceil}s" if allowed_clock_drift > 0})")
701+
error_msg = "Current time is on or after NotOnOrAfter condition (#{now} >= #{not_on_or_after}#{" + #{allowed_clock_drift.ceil}s" if allowed_clock_drift > 0})"
702702
return append_error(error_msg)
703703
end
704704

0 commit comments

Comments
 (0)