mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fix code format to make checkstyle happy
This commit is contained in:
parent
f963e1ce3c
commit
47eec880be
1 changed files with 3 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ public class SparkRInterpreter extends Interpreter {
|
|||
try {
|
||||
JsonNode rootNode = m.readTree(jsonConfig);
|
||||
JsonNode imageWidthNode = rootNode.path("imageWidth");
|
||||
if (! imageWidthNode.isMissingNode()) imageWidth = imageWidthNode.textValue();
|
||||
if (!imageWidthNode.isMissingNode()) imageWidth = imageWidthNode.textValue();
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.warn("Can not parse json config: " + jsonConfig, e);
|
||||
|
|
@ -137,9 +137,8 @@ public class SparkRInterpreter extends Interpreter {
|
|||
Elements paragraphs = body.getElementsByTag("p");
|
||||
|
||||
if ((paragraphs.size() == 1)
|
||||
&& (images.size() == 0)
|
||||
&& (scripts.size() == 0)
|
||||
) {
|
||||
&& (images.size() == 0)
|
||||
&& (scripts.size() == 0)) {
|
||||
|
||||
// We are here with a pure text output, let's keep format intact...
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue