Skip to content

Commit

Permalink
chore: Clean up the S3FileSystem.key2Parts method. (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlavolee authored Jul 25, 2023
1 parent f132151 commit 1dff817
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,7 @@ public String getEndpoint()

public String[] key2Parts(String keyParts)
{
String[] parts = keyParts.split(PATH_SEPARATOR);
String[] split = new String[parts.length];

int i = 0;
for (String part : parts)
{
split[i++] = part;
}

return split;
return keyParts.split(PATH_SEPARATOR);
}

public int getCache()
Expand Down

0 comments on commit 1dff817

Please sign in to comment.