File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Parse/src/main/java/com/parse Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -105,17 +105,13 @@ public Task<Void> then(Task<Boolean> task) throws Exception {
105
105
if (!task .getResult ()) {
106
106
return Task .forResult (null );
107
107
}
108
- Task <Void > saveTask ;
109
108
if (installation .getPushType () != PushType .GCM ) {
110
109
installation .setPushType (PushType .GCM );
111
- saveTask = installation .saveInBackground ();
112
- } else {
113
- saveTask = Task .forResult (null );
114
110
}
115
111
// We do not need to wait sendRegistrationRequestAsync, since this task will finish
116
112
// after we get the response from GCM, if we wait for this task, it will block our test.
117
113
sendRegistrationRequestAsync ();
118
- return saveTask ;
114
+ return Task . forResult ( null ) ;
119
115
}
120
116
});
121
117
}
You can’t perform that action at this time.
0 commit comments