Skip to content

Commit 096de59

Browse files
committed
Merge pull request #267 from vincentwoo/unused-parameter
remove unused soft parameter from validate_response_state
2 parents 3736861 + 5ecd6a0 commit 096de59

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/onelogin/ruby-saml/response.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,9 @@ def validate_structure
328328

329329
# Validates that the SAML Response provided in the initialization is not empty,
330330
# also check that the setting and the IdP cert were also provided
331-
# @param soft [Boolean] soft Enable or Disable the soft mode (In order to raise exceptions when the response is invalid or not)
332-
# @return [Boolean] True if the required info is found, otherwise False if soft=True
333-
# @raise [ValidationError] if soft == false and validation fails
331+
# @return [Boolean] True if the required info is found, false otherwise
334332
#
335-
def validate_response_state(soft = true)
333+
def validate_response_state
336334
return append_error("Blank response") if response.nil? || response.empty?
337335

338336
return append_error("No settings on response") if settings.nil?

0 commit comments

Comments
 (0)