Use isEmpty() where possible
See gh-20370
This commit is contained in:
committed by
Stephane Nicoll
parent
4598680692
commit
9588188800
@@ -62,7 +62,7 @@ class Context {
|
||||
return null;
|
||||
}
|
||||
String relativePath = sourcePath.substring(workingPath.length() + 1);
|
||||
return (relativePath.length() > 0) ? relativePath : null;
|
||||
return !relativePath.isEmpty() ? relativePath : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user