Skip to content

Commit 0460fac

Browse files
committed
Remove redundant "typescript_auto_format" setting checking
1 parent 08c8340 commit 0460fac

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

TypeScript.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,11 +1531,6 @@ def setCaretPos(view, pos):
15311531
# format on ";", "}", or "\n"; called by typing these keys in a ts file
15321532
# in the case of "\n", this is only called when no completion dialogue visible
15331533
class TypescriptFormatOnKey(sublime_plugin.TextCommand):
1534-
def is_enabled(self):
1535-
settings = sublime.load_settings('Preferences.sublime-settings')
1536-
_is_enabled = settings.get('typescript_auto_format', True)
1537-
return _is_enabled
1538-
15391534
def run(self, text, key = "", insertKey = True):
15401535
if 0 == len(key):
15411536
return

0 commit comments

Comments
 (0)