We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e6416 commit 505b161Copy full SHA for 505b161
src/org/opensolaris/opengrok/configuration/Project.java
@@ -215,16 +215,15 @@ public static Project getProject(File file) {
215
* @return project that fits the name
216
*/
217
public static Project getByName(String name) {
218
- Project ret = null;
219
RuntimeEnvironment env = RuntimeEnvironment.getInstance();
220
if (env.hasProjects()) {
221
for (Project proj : env.getProjects()) {
222
- if (name.indexOf(proj.getName()) == 0) {
223
- ret = proj;
+ if (name.equals(proj.getName())) {
+ return (proj);
224
}
225
226
227
- return ret;
+ return null;
228
229
230
@Override
0 commit comments