浏览代码

Simplify unpacking variables.

Jason Grout 5 年之前
父节点
当前提交
12bb688d7c
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      packages/filebrowser-extension/src/index.ts

+ 2 - 4
packages/filebrowser-extension/src/index.ts

@@ -360,10 +360,8 @@ function addCommands(
   palette: ICommandPalette | null,
   mainMenu: IMainMenu | null
 ): void {
-  const registry = app.docRegistry;
-  const { commands } = app;
-  const { defaultBrowser: browser } = factory;
-  const { tracker } = factory;
+  const { docRegistry: registry, commands } = app;
+  const { defaultBrowser: browser, tracker } = factory;
 
   commands.addCommand(CommandIDs.del, {
     execute: () => {