Browse Source

feat(marked): remove unnecessary code

冯不游 1 year ago
parent
commit
a24e91908a
1 changed files with 1 additions and 6 deletions
  1. 1 6
      plugins/marked2/marked2.plugin.zsh

+ 1 - 6
plugins/marked2/marked2.plugin.zsh

@@ -3,10 +3,5 @@
 # If marked is passed a file, open it in Marked
 #
 function marked() {
-    if [ "$1" ]
-    then
-        open -a "marked 2.app" "$1"
-    else
-        open -a "marked 2.app"
-    fi
+    open -a "marked 2.app" "$1"
 }