Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 44e1449

Browse files
committed
Don't use deprecated atom.config.unobserve
1 parent d4c8218 commit 44e1449

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/linter-lua.coffee

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class LinterLua extends Linter
2121
super(editor)
2222

2323
# Set to observe config options
24-
atom.config.observe 'linter-lua.executable', => @updateCommand()
24+
@configSubscription = atom.config.observe 'linter-lua.executable', => @updateCommand()
2525

2626
updateCommand: ->
2727
executable = atom.config.get 'linter-lua.executable'
@@ -31,6 +31,7 @@ class LinterLua extends Linter
3131
@cmd = [executable, '-p']
3232

3333
destroy: ->
34-
atom.config.unobserve 'linter-lua.executable'
34+
super
35+
@configSubscription.dispose()
3536

3637
module.exports = LinterLua

0 commit comments

Comments
 (0)