mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge branch 'CT-7160-ctCloudIngest' of github.com:gdicristofaro/autopsy into CT-7161-fileUpload
This commit is contained in:
commit
5d581f117f
@ -57,11 +57,7 @@ public class CTLicensePersistence {
|
||||
File licenseFile = getCTLicenseFile();
|
||||
try {
|
||||
licenseFile.getParentFile().mkdirs();
|
||||
if (licenseResponse != null) {
|
||||
objectMapper.writeValue(licenseFile, licenseResponse);
|
||||
} else if (licenseFile.exists()) {
|
||||
Files.delete(licenseFile.toPath());
|
||||
}
|
||||
objectMapper.writeValue(licenseFile, licenseResponse);
|
||||
return true;
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.WARNING, "There was an error writing CyberTriage license to file: " + licenseFile.getAbsolutePath(), ex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user