From 25b8dfc54cd7c1025a1d9dbf09610798b24bc5c8 Mon Sep 17 00:00:00 2001 From: JonBensi Date: Wed, 7 Aug 2024 23:34:51 -0400 Subject: [PATCH] Removes `this` for compatability with pulsar --- lib/linter-docblock-python.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linter-docblock-python.js b/lib/linter-docblock-python.js index b04ed0c..60e3dd4 100644 --- a/lib/linter-docblock-python.js +++ b/lib/linter-docblock-python.js @@ -3,7 +3,7 @@ import {get_all_docblocks} from './docblock-python.js'; -this.get_all_docblocks = get_all_docblocks; +get_all_docblocks = get_all_docblocks; function formatLint(msg_pos, par_name, par_type, editorPath) { let type_text; @@ -158,7 +158,7 @@ function lint_docblocks() { return []; }; if (editor = atom.workspace.getActiveTextEditor()) { - let allBlocks = this.get_all_docblocks(); + let allBlocks = get_all_docblocks(); let missing_par = []; if (allBlocks.length > 0) { let that = this;