summaryrefslogtreecommitdiff
path: root/ale_linters/crystal/crystal.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-04-15 12:52:08 +0100
committerw0rp <devw0rp@gmail.com>2017-04-15 12:52:08 +0100
commitcab68cba250fb81a4d20ffd637925a708bb46e8a (patch)
tree14a917e41e977aa5cd591ebdb2a2eda7c29530f3 /ale_linters/crystal/crystal.vim
parentc9a5d9845b9bff9174c4bb3b67a9f7bfda190ee6 (diff)
downloadale-cab68cba250fb81a4d20ffd637925a708bb46e8a.zip
Make code more consistent
Diffstat (limited to 'ale_linters/crystal/crystal.vim')
-rw-r--r--ale_linters/crystal/crystal.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/ale_linters/crystal/crystal.vim b/ale_linters/crystal/crystal.vim
index 5abf7e84..95ab94ff 100644
--- a/ale_linters/crystal/crystal.vim
+++ b/ale_linters/crystal/crystal.vim
@@ -5,7 +5,7 @@ function! ale_linters#crystal#crystal#Handle(buffer, lines) abort
let l:output = []
let l:lines = join(a:lines, '')
-
+
if !empty(l:lines)
let l:errors = json_decode(l:lines)
@@ -24,11 +24,11 @@ function! ale_linters#crystal#crystal#Handle(buffer, lines) abort
endfunction
function! ale_linters#crystal#crystal#GetCommand(buffer) abort
- let l:crystal_cmd = 'crystal build -f json --no-codegen -o '
- let l:crystal_cmd .= shellescape(g:ale#util#nul_file)
- let l:crystal_cmd .= ' %t'
+ let l:crystal_cmd = 'crystal build -f json --no-codegen -o '
+ let l:crystal_cmd .= shellescape(g:ale#util#nul_file)
+ let l:crystal_cmd .= ' %t'
- return l:crystal_cmd
+ return l:crystal_cmd
endfunction
call ale#linter#Define('crystal', {