From 5bb7563a12628cd66d66adefbd8599499beb2400 Mon Sep 17 00:00:00 2001 From: thibault_falque Date: Fri, 18 Aug 2017 15:57:35 +0200 Subject: [PATCH] change condition --- .../fr/univartois/sonargo/highlighter/HighlighterSensor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/univartois/sonargo/highlighter/HighlighterSensor.java b/src/main/java/fr/univartois/sonargo/highlighter/HighlighterSensor.java index e291f0d..675f75b 100644 --- a/src/main/java/fr/univartois/sonargo/highlighter/HighlighterSensor.java +++ b/src/main/java/fr/univartois/sonargo/highlighter/HighlighterSensor.java @@ -27,7 +27,7 @@ public void describe(SensorDescriptor descriptor) { @Override public void execute(SensorContext context) { - if (context.settings().getBoolean(GoProperties.HIGHLIGHTING_KEY)) { + if (!context.settings().getBoolean(GoProperties.HIGHLIGHTING_KEY)) { LOGGER.info("highlighting disabled"); return; }