Author: nmalin
Date: Mon Apr  4 19:02:01 2016
New Revision: 1737734

URL: http://svn.apache.org/viewvc?rev=1737734&view=rev
Log:
no functionnal change, remove unnecessary space and  unnecessary return

Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java

Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java?rev=1737734&r1=1737733&r2=1737734&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java 
(original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/ModelService.java Mon 
Apr  4 19:02:01 2016
@@ -985,7 +985,7 @@ public class ModelService extends Abstra
                 LocalDispatcher dispatcher = dctx.getDispatcher();
                 Map<String, Object> resp;
                 try {
-                    resp = dispatcher.runSync(permission.name,  ctx, 300, 
true);
+                    resp = dispatcher.runSync(permission.name, ctx, 300, true);
                 } catch (GenericServiceException e) {
                     Debug.logError(e, module);
                     Map<String, Object> result = ServiceUtil.returnSuccess();
@@ -1030,7 +1030,7 @@ public class ModelService extends Abstra
     /**
      * Evaluates permissions for a service.
      * @param dctx DispatchContext from the invoked service
-     * @param context Map containing userLogin infromation
+     * @param context Map containing userLogin information
      * @return true if all permissions evaluate true.
      */
     public boolean evalPermissions(DispatchContext dctx, Map<String, ? extends 
Object> context) {
@@ -1041,10 +1041,8 @@ public class ModelService extends Abstra
                     return false;
                 }
             }
-            return true;
-        } else {
-            return true;
         }
+        return true;
     }
 
     /**


Reply via email to