From 94849d564580157085c0dfbc450ae4fea3e4201f Mon Sep 17 00:00:00 2001 From: Cyper Date: Tue, 21 Aug 2018 16:49:19 +0800 Subject: [PATCH] avoid problem #69 Renaming variables should not accept null strings since renaming must provide a new name. --- script/tern.py | 1 + 1 file changed, 1 insertion(+) diff --git a/script/tern.py b/script/tern.py index a522a6a..53dd315 100644 --- a/script/tern.py +++ b/script/tern.py @@ -414,6 +414,7 @@ def __ne__(self, other): return K def tern_rename(newName): + if not newName: return data = tern_runCommand({"type": "rename", "newName": newName}, fragments=False) if data is None: return