diff options
author | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-08-29 22:42:02 +0530 |
---|---|---|
committer | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-08-29 22:42:13 +0530 |
commit | 89451aaa6bf33be7e9b0457007ba3ecb37eb9582 (patch) | |
tree | d3ca080ef18aeec1d6d5967863517c714b430e0f | |
parent | a844e4ef3ac50c1b47713ba22feae8863307fed0 (diff) |
sonar-463 Immediately return this expression instead of assigning it to the temporary variable "ks"
Immediately return this expression
Issue-ID: MUSIC-463
Change-Id: Idd4745e9b6c6c956d736172302d272ec20946048
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
-rwxr-xr-x | src/main/java/org/onap/music/datastore/MusicDataStore.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/datastore/MusicDataStore.java b/src/main/java/org/onap/music/datastore/MusicDataStore.java index e3d4c780..6555ea21 100755 --- a/src/main/java/org/onap/music/datastore/MusicDataStore.java +++ b/src/main/java/org/onap/music/datastore/MusicDataStore.java @@ -284,8 +284,7 @@ public class MusicDataStore { * @return TableMetadata */ public KeyspaceMetadata returnKeyspaceMetadata(String keyspace) { - KeyspaceMetadata ks = cluster.getMetadata().getKeyspace(keyspace); - return ks; + return cluster.getMetadata().getKeyspace(keyspace); } |