Skip to content

Commit

Permalink
Remove style check in subfunction
Browse files Browse the repository at this point in the history
  • Loading branch information
mzlogin committed May 11, 2018
1 parent 9f256fd commit bde5df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftplugin/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ endfunction
function! s:GetMarkdownStyleInModeline()
let l:myFileType = &filetype
let l:lst = split(l:myFileType, "\\.")
if len(l:lst) == 2 && l:lst[1] ==# "markdown" && index(s:supportMarkdownStyles, l:lst[0]) != -1
if len(l:lst) == 2 && l:lst[1] ==# "markdown"
return l:lst[0]
else
return ""
return "Unknown"
endif
endfunction

Expand Down

0 comments on commit bde5df7

Please sign in to comment.