Browse Source

kernel: small code cleaning

Herbert Vojčík 7 years ago
parent
commit
63134ba9e2
1 changed files with 2 additions and 4 deletions
  1. 2 4
      support/boot.js

+ 2 - 4
support/boot.js

@@ -198,10 +198,8 @@ define(['require', './brikz', './compatibility'], function (require, Brikz) {
          If package already exists we still update the properties of it. */
 
         st.addPackage = function (pkgName, properties) {
-            if (!pkgName) {
-                return null;
-            }
-            if (!(st.packages[pkgName])) {
+            if (!pkgName) return null;
+            if (!st.packages[pkgName]) {
                 st.packages[pkgName] = pkg({
                     pkgName: pkgName,
                     properties: properties