summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorThomas Nelson <nelson24@att.com>2019-09-11 16:40:41 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-11 16:40:41 +0000
commit08a17c93ecd50971172026dafb5456f41040ea1a (patch)
treeba843758a13ae7e1aad30c475db5b987de76b16c /src/main/java
parentaaa3b78f44dc513cc4e37fcfe0baf6fa45f83603 (diff)
parent89451aaa6bf33be7e9b0457007ba3ecb37eb9582 (diff)
Merge "sonar-463 Immediately return this expression instead of assigning it to the temporary variable "ks""
Diffstat (limited to 'src/main/java')
-rwxr-xr-xsrc/main/java/org/onap/music/datastore/MusicDataStore.java3
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);
}