From b9a96778f31d53d7c7e3b352d7fb02cac3165d6d Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 5 Aug 2010 16:00:37 +0000 Subject: 非サブコマンドの時にコンソールに無駄なエラーが出るのチェック git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38189 d0d07461-0603-4401-acd4-de1884942a52 --- twittperator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twittperator.js b/twittperator.js index 4ef5b65..ce7f7bb 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1574,7 +1574,8 @@ function loadPlugins() { // {{{ if (args.bang) { let [subCmd] = findSubCommand(arg); - subCmd.action(args); + if (subCmd) + subCmd.action(args); } else { if (arg.length === 0) showFollowersStatus(); -- cgit v1.2.3