Skip to content

Commit

Permalink
fix Hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Feb 13, 2021
1 parent 944c4b7 commit 3c8808a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import Control.Monad.IO.Class
import Control.Monad.Trans.Except
import Data.Aeson.Types (ToJSON(..), FromJSON(..), Value(..))
import Data.Binary
import Data.Default
import Data.Hashable
import qualified Data.HashMap.Strict as Map
import Data.Maybe
Expand Down Expand Up @@ -102,7 +103,7 @@ type instance RuleResult GetHlintDiagnostics = ()
rules :: PluginId -> Rules ()
rules plugin = do
define $ \GetHlintDiagnostics file -> do
config <- getClientConfigAction
config <- getClientConfigAction def
let pluginConfig = configForPlugin config plugin
let hlintOn' = hlintOn config && pluginEnabled pluginConfig plcDiagnosticsOn
ideas <- if hlintOn' then getIdeas file else return (Right [])
Expand Down

0 comments on commit 3c8808a

Please # to comment.