mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't suggest the initial name if un-pluralization failed (PY-12308)
This commit is contained in:
+1
-2
@@ -69,8 +69,7 @@ public class CollectionElementNameMacro extends Macro {
|
||||
if (param.endsWith("_list")) {
|
||||
return param.substring(0, param.length()-5);
|
||||
}
|
||||
final String result = StringUtil.unpluralize(param);
|
||||
return result == null ? param : result;
|
||||
return StringUtil.unpluralize(param);
|
||||
}
|
||||
|
||||
public LookupElement[] calculateLookupItems(@NotNull Expression[] params, ExpressionContext context) {
|
||||
|
||||
Reference in New Issue
Block a user