mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
use index of char instead of index of string, if possible
This commit is contained in:
@@ -332,7 +332,7 @@ public class HgFileviewCommand extends AbstractCommand
|
||||
*/
|
||||
private String getNameFromPath(String path)
|
||||
{
|
||||
int index = path.lastIndexOf("/");
|
||||
int index = path.lastIndexOf('/');
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user