Skip to content

Commit

Permalink
Merge pull request #50 from Qualys/develop
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 f000530 + 91a3f7b commit 3b96621
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 3b96621

Please sign in to comment.