Skip to content

Commit

Permalink
replaced .isEmpty() check with Utils.isEmpty(). apache#4369
Browse files Browse the repository at this point in the history
  • Loading branch information
bamaer committed Oct 20, 2024
1 parent e12e236 commit 2921929
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public boolean processRow() throws HopException {
}
} else {
// Static URL
if (!meta.getConnectionName().isEmpty()) {
if (!Utils.isEmpty(meta.getConnectionName())) {
data.realUrl = baseUrl + resolve(meta.getUrl());
} else {
data.realUrl = resolve(meta.getUrl());
Expand All @@ -447,7 +447,7 @@ public boolean processRow() throws HopException {
}
}
// set Headers
if (!meta.getHeaderFields().isEmpty()) {
if (!Utils.isEmpty(meta.getHeaderFields())) {
data.nrheader = meta.getHeaderFields().size();
data.indexOfHeaderFields = new int[meta.getHeaderFields().size()];
data.headerNames = new String[meta.getHeaderFields().size()];
Expand Down

0 comments on commit 2921929

Please sign in to comment.