Skip to content

Commit

Permalink
Replace String new with literal string
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Dec 24, 2023
1 parent cbfd208 commit 245d8b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ convertMultipartEntity: anEntity with: aMultiValueDictionary
anEntity partsDo: [ :part |
| value |
value := part hasEntity
ifFalse: [ String new ]
ifFalse: [ '' ]
ifTrue: [
(part fileName isEmptyOrNil not or: [
part contentType notNil and: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ convertMultipartStreamingEntity: anEntity with: aMultiValueDictionary
at: znMimePart fieldName
add: (self codec url decode: (znMimePart hasEntity
ifTrue: [ znMimePart fieldValueString ]
ifFalse: [ String new ])) ]
ifFalse: [ '' ])) ]
decodeFilesWith: [ :znMimePart :filePath |
"Empty file + empty filename means that the file form
field did not contain a value (no file was selected)."
Expand Down

0 comments on commit 245d8b7

Please sign in to comment.