Skip to content

Commit

Permalink
removed isBlank() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
reeshika-h committed Apr 29, 2024
1 parent 14e595b commit deb3fed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/contentstack/cms/stack/FileUploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public MultipartBody createMultipartBody(String filePath, String parentUid, Stri
}

//Adding additional parameters
if (parentUid != null && !parentUid.isBlank()) {
if (parentUid != null) {
builder.addFormDataPart("asset[parent_uid]", parentUid);
}
if (title != null && !title.isBlank()) {
if (title != null ) {
builder.addFormDataPart("asset[title]", title);
}
if (description != null && !description.isBlank()) {
if (description != null) {
builder.addFormDataPart("asset[description]", description);
}
if (tags != null && tags.length > 0) {
Expand Down

0 comments on commit deb3fed

Please sign in to comment.