Skip to content

Commit

Permalink
Merge pull request #49 from Qualys/bug-fix/QINT-16843
Browse files Browse the repository at this point in the history
QINT-15645: GitHub App for WAS
  • Loading branch information
qsadhav committed Jan 16, 2024
2 parents 0648e14 + 97a96a3 commit 91a3f7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ public QualysWASScanBuilder(Environment environment) {
}

private void validateParameters() {
if (this.authRecord == null || ((!this.authRecord.equalsIgnoreCase("none") && !this.authRecord.equalsIgnoreCase("useDefault") && !this.authRecord.equalsIgnoreCase("other")))) {
if (this.authRecord == null || ((!this.authRecord.equals("none") && !this.authRecord.equals("useDefault") && !this.authRecord.equals("other")))) {
String message = "Invalid value for AUTH_RECORD. Valid values are none, useDefault, other";
logger.error(message);
Helper.dumpDataIntoFile(message, "Qualys_Wasscan_" + this.webAppId + ".txt");
System.exit(1);
}

if (this.optionProfile == null || ((!this.optionProfile.equalsIgnoreCase("useDefault") && !this.optionProfile.equalsIgnoreCase("other")))) {
if (this.optionProfile == null || ((!this.optionProfile.equals("useDefault") && !this.optionProfile.equals("other")))) {
String message = "Invalid value for OPTION_PROFILE. Valid values are useDefault, other";
logger.error(message);
Helper.dumpDataIntoFile(message, "Qualys_Wasscan_" + this.webAppId + ".txt");
Expand Down

0 comments on commit 91a3f7b

Please sign in to comment.