aboutsummaryrefslogtreecommitdiffstats
path: root/validate/sample-yaml-generator/src/main/java/org
diff options
context:
space:
mode:
authorpriyanka.akhade <priyanka.akhade@huawei.com>2020-05-05 09:36:31 +0000
committerpriyanka.akhade <priyanka.akhade@huawei.com>2020-05-06 09:54:31 +0000
commit43daaf01499ac80d52187507e50f6ce7c5ce6026 (patch)
tree942a431f8d2e18de7394549a7c4f0ea124b06da4 /validate/sample-yaml-generator/src/main/java/org
parent19684879f5742847e2e903d6c039de7e13fab6e3 (diff)
sonar bug fix- conditional operation returns the same value whether the condition is "true" or "false"
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Issue-ID: CLI-270 Change-Id: I500b47559bba7b8cf366f70357041c4c516b8f90
Diffstat (limited to 'validate/sample-yaml-generator/src/main/java/org')
-rw-r--r--validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java b/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java
index 37c51401..bc8f456e 100644
--- a/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java
+++ b/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java
@@ -61,8 +61,7 @@ public class SampleYamlGenerator {
writer.write(" |\n");
nTab++;
String[] lines = value.split("\n");
- long skipLines = debug ? 0 : 0;
- Arrays.stream(lines).skip(skipLines ).forEach(line -> writer.write(printTabs() + line + "\n")); // NOSONAR
+ Arrays.stream(lines).forEach(line -> writer.write(printTabs() + line + "\n")); // NOSONAR
}
private static String printTabs() {