Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #12 from wy-z/dev
Browse files Browse the repository at this point in the history
[linter] Rm 'pre_code'
  • Loading branch information
wy-z authored Oct 12, 2017
2 parents 24307a0 + 43260dd commit 952aa32
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions golite/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@ class Gometalinter(Linter):
def __init__(self, view, syntax):
Linter.__init__(self, view, syntax)

self._pre_code = ""

if not self.env:
self.env = {}
self.env.update(utils.get_env())

def run(self, cmd, code):
if self._pre_code == code:
return
self._pre_code = code

new_cmd = cmd + [
os.path.dirname(self.filename), '-I',
os.path.basename(self.filename)
Expand Down

0 comments on commit 952aa32

Please sign in to comment.