Skip to content

Commit d73bd10

Browse files
authored
Us 594004 polling waiting for sonatype scan (#102)
* Changes to wait for Sonatype Scan in Polling * upgraded version * Changes to take care of polling status * Fixed include third party libraries fix
1 parent 465f968 commit d73bd10

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/main/java/com/fortify/fod/fodapi/controllers/ReleaseController.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,12 @@ public boolean UpdateScanSettings(StaticScanSetupDTO scanSettingsDTO, final Fort
228228
if(fc.isBinaryScan){
229229
pss.scanBinary = fc.isBinaryScan;
230230
} else {
231-
if(scanSettingsDTO != null)
232-
pss.scanBinary = scanSettingsDTO.getScanBinary();
233-
else
231+
if(scanSettingsDTO != null) {
232+
pss.scanBinary = scanSettingsDTO.getScanBinary() ? scanSettingsDTO.getScanBinary() : null;
233+
}
234+
else {
234235
pss.scanBinary = null;
236+
}
235237
}
236238
pss.includeThirdPartyLibraries = fc.includeThirdPartyLibs ? fc.includeThirdPartyLibs : scanSettingsDTO.getincludeThirdPartyLibraries();
237239
pss.useSourceControl = false;
@@ -252,4 +254,4 @@ private boolean needsLanguageLevel(int techStackId){
252254
return false;
253255
}
254256
}
255-
}
257+
}

0 commit comments

Comments
 (0)