Skip to content

Commit

Permalink
restored unrelated code reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-pol committed Sep 30, 2024
1 parent 571cfa7 commit 98aca80
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,7 @@ public CreateDataFileResult execute(CommandContext ctxt) throws CommandException
// file is above the individual size limit, unzipped,
// we give up on unpacking this zip archive as well:
if (fileSizeLimit != null && entry.getSize() > fileSizeLimit) {
// TODO why no log and warning message?
throw new FileExceedsMaxSizeException(
MessageFormat.format(BundleUtil.getStringFromBundle("file.addreplace.error.file_exceeds_limit"), bytesToHumanReadable(entry.getSize()),
bytesToHumanReadable(fileSizeLimit)));
throw new FileExceedsMaxSizeException(MessageFormat.format(BundleUtil.getStringFromBundle("file.addreplace.error.file_exceeds_limit"), bytesToHumanReadable(entry.getSize()), bytesToHumanReadable(fileSizeLimit)));
}
// Similarly, we want to check if saving all these unpacked
// files is going to push the disk usage over the
Expand All @@ -347,8 +344,7 @@ public CreateDataFileResult execute(CommandContext ctxt) throws CommandException
// we reject the upload outright, rather than accepting the zip
// file as is.
// TODO why no log and warning message?
throw new CommandExecutionException(
MessageFormat.format(BundleUtil.getStringFromBundle("file.addreplace.error.unzipped.quota_exceeded"), bytesToHumanReadable(storageQuotaLimit)), this);
throw new CommandExecutionException(MessageFormat.format(BundleUtil.getStringFromBundle("file.addreplace.error.unzipped.quota_exceeded"), bytesToHumanReadable(storageQuotaLimit)), this);
}
}
}
Expand Down

0 comments on commit 98aca80

Please sign in to comment.