Fixed bug in remote recorder, which caused list of recorded models to be
null
This commit is contained in:
parent
57c5cc7094
commit
2fcc85853f
|
@ -72,10 +72,7 @@ public class RemoteRecorder implements Recorder {
|
|||
String json = response.body().string();
|
||||
if(response.isSuccessful()) {
|
||||
ModelListResponse resp = modelListResponseAdapter.fromJson(json);
|
||||
if(resp.status.equals("success")) {
|
||||
models = resp.models;
|
||||
lastSync = Instant.now();
|
||||
} else {
|
||||
if(!resp.status.equals("success")) {
|
||||
throw new IOException("Server returned error " + resp.status + " " + resp.msg);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue