浏览代码

kernel: small code cleaning

Herbert Vojčík 7 年之前
父节点
当前提交
63134ba9e2
共有 1 个文件被更改,包括 2 次插入4 次删除
  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