Skip to content

Commit

Permalink
Removed unnecessary use of Long.toString from BlobStoreRepository. (o…
Browse files Browse the repository at this point in the history
…pensearch-project#5833)

Signed-off-by: Mani <singh.mani1231@gmail.com>
  • Loading branch information
baba-devv authored and nknize committed Jan 19, 2023
1 parent 8dc57d3 commit b7a9ff2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,7 @@ private RepositoryData getRepositoryData(long indexGen) {
return RepositoryData.EMPTY;
}
try {
final String snapshotsIndexBlobName = INDEX_FILE_PREFIX + Long.toString(indexGen);
final String snapshotsIndexBlobName = INDEX_FILE_PREFIX + indexGen;

// EMPTY is safe here because RepositoryData#fromXContent calls namedObject
try (
Expand Down

0 comments on commit b7a9ff2

Please sign in to comment.