pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanjee...@apache.org
Subject [pulsar] 13/13: Logic correction
Date Mon, 08 Oct 2018 22:03:19 GMT
This is an automated email from the ASF dual-hosted git repository.

sanjeevrk pushed a commit to branch srkukarni/serverside_validation_endpoints
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit 8fd2209494db0756ef83627da5a7426cc7e2af02
Author: Sanjeev Kulkarni <sanjeev@streaml.io>
AuthorDate: Mon Oct 8 14:19:33 2018 -0700

    Logic correction
---
 .../apache/pulsar/functions/worker/rest/api/FunctionsImpl.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/FunctionsImpl.java
b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/FunctionsImpl.java
index 08cd7de..04d865c 100644
--- a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/FunctionsImpl.java
+++ b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/FunctionsImpl.java
@@ -974,16 +974,16 @@ public class FunctionsImpl {
         }
 
         int numDefinitions = 0;
-        if (StringUtils.isEmpty(functionDetailsJson)) {
+        if (!StringUtils.isEmpty(functionDetailsJson)) {
             numDefinitions++;
         }
-        if (StringUtils.isEmpty(functionConfigJson)) {
+        if (!StringUtils.isEmpty(functionConfigJson)) {
             numDefinitions++;
         }
-        if (StringUtils.isEmpty(sourceConfigJson)) {
+        if (!StringUtils.isEmpty(sourceConfigJson)) {
             numDefinitions++;
         }
-        if (StringUtils.isEmpty(sinkConfigJson)) {
+        if (!StringUtils.isEmpty(sinkConfigJson)) {
             numDefinitions++;
         }
         if (numDefinitions == 0) {


Mime
View raw message