You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2024/01/11 08:14:31 UTC

(struts-site) 01/02: WW-5371 Fixes example code

This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch feature/WW-5371-modern-upload
in repository https://gitbox.apache.org/repos/asf/struts-site.git

commit 5f6ecdf1d9ca37e5ef881dd5fe054344e330733c
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Thu Jan 11 09:14:03 2024 +0100

    WW-5371 Fixes example code
---
 source/core-developers/action-file-upload-interceptor.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/core-developers/action-file-upload-interceptor.md b/source/core-developers/action-file-upload-interceptor.md
index 9feeb4ccb..6019347ef 100644
--- a/source/core-developers/action-file-upload-interceptor.md
+++ b/source/core-developers/action-file-upload-interceptor.md
@@ -82,7 +82,7 @@ public class UploadAction extends ActionSupport implements UploadedFilesAware {
 
    @Override
    public void withUploadedFiles(List<UploadedFile> uploadedFiles) {
-      if (!uploadedFiles.isEmpty() > 0) {
+      if (!uploadedFiles.isEmpty()) {
          this.uploadedFile = uploadedFiles.get(0);
          this.fileName = uploadedFile.getName();
          this.contentType = uploadedFile.getContentType();