-
Notifications
You must be signed in to change notification settings - Fork 528
Closed
Description
[Language Translator] getModels()
This is literally a copy/paste error.
public ServiceCall<List> getModels(final Boolean showDefault, final String source, final String target) {
final RequestBuilder requestBuilder = RequestBuilder.get(PATH_MODELS);
if ((source != null) && !source.isEmpty()) {
requestBuilder.query(SOURCE, source);
}
if ((target != null) && !target.isEmpty()) {
requestBuilder.query(TARGET, source);
}
......
}
What is clearly supposed to be "requestBuilder.query(TARGET, target);" is using the value from source again. This makes this method degenerate into never being able to find any models because you're always trying looking for a translation to and from the same language.
Metadata
Metadata
Assignees
Labels
No labels