@@ -56,7 +56,7 @@ abstract class OperationRef<Data, Variables> {
5656 Future <bool > _shouldRetry () async {
5757 String ? newToken;
5858 try {
59- newToken = await this . dataConnect.auth? .currentUser? .getIdToken ();
59+ newToken = await dataConnect.auth? .currentUser? .getIdToken ();
6060 } catch (e) {
6161 // Don't retry if there was an issue getting the ID Token.
6262 log ('There was an error attempting to retrieve the ID Token: $e ' );
@@ -152,12 +152,12 @@ class QueryRef<Data, Variables> extends OperationRef<Data, Variables> {
152152 Future <QueryResult <Data , Variables >> execute () async {
153153 bool shouldRetry = await _shouldRetry ();
154154 try {
155- QueryResult <Data , Variables > r = await this . _executeOperation (_lastToken);
155+ QueryResult <Data , Variables > r = await _executeOperation (_lastToken);
156156 return r;
157157 } on DataConnectError catch (e) {
158158 if (shouldRetry &&
159159 e.code == DataConnectErrorCode .unauthorized.toString ()) {
160- return this . execute ();
160+ return execute ();
161161 } else {
162162 rethrow ;
163163 }
@@ -201,7 +201,7 @@ class QueryRef<Data, Variables> extends OperationRef<Data, Variables> {
201201 .cast <QueryResult <Data , Variables >>();
202202 if (_queryManager.containsQuery (operationName, variables, varsSerialized)) {
203203 try {
204- this . execute ();
204+ execute ();
205205 } catch (_) {
206206 // Call to `execute` should properly pass the error to the Stream.
207207 log ('Error thrown by execute. The error will propagate via onError.' );
@@ -234,13 +234,12 @@ class MutationRef<Data, Variables> extends OperationRef<Data, Variables> {
234234 try {
235235 // Logic below is duplicated due to the fact that `executeOperation` returns
236236 // an `OperationResult` here, and `QueryRef` expects a `QueryResult`.
237- OperationResult <Data , Variables > r =
238- await this ._executeOperation (_lastToken);
237+ OperationResult <Data , Variables > r = await _executeOperation (_lastToken);
239238 return r;
240239 } on DataConnectError catch (e) {
241240 if (shouldRetry &&
242241 e.code == DataConnectErrorCode .unauthorized.toString ()) {
243- return this . execute ();
242+ return execute ();
244243 } else {
245244 rethrow ;
246245 }
0 commit comments