diff options
author | priyanka.akhade <priyanka.akhade@huawei.com> | 2020-05-05 09:36:31 +0000 |
---|---|---|
committer | priyanka.akhade <priyanka.akhade@huawei.com> | 2020-05-06 09:54:31 +0000 |
commit | 43daaf01499ac80d52187507e50f6ce7c5ce6026 (patch) | |
tree | 942a431f8d2e18de7394549a7c4f0ea124b06da4 /validate/sample-yaml-generator/src/main/java/org | |
parent | 19684879f5742847e2e903d6c039de7e13fab6e3 (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.java | 3 |
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() { |