You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove local type annotations since these are not used throughout the rest of the codebase and we should not establish a precedence we don't follow ourselves. The original intention was to make things more clear but it can set a bad example.
commit-id:4c0d01a1
@@ -65,13 +65,13 @@ final AWSHttpRequest request = AWSHttpRequest(
65
65
);
66
66
67
67
// Sign and send the HTTP request
68
-
final AWSSignedRequest signedRequest = await signer.sign(
68
+
final signedRequest = await signer.sign(
69
69
request,
70
70
credentialScope: scope,
71
71
);
72
-
final AWSStreamedHttpResponse resp = await signedRequest.send();
73
-
final String respBody = await resp.decodeBody();
74
-
print(respBody);
72
+
final resp = await signedRequest.send();
73
+
final respBody = await resp.decodeBody();
74
+
safePrint(respBody);
75
75
```
76
76
77
77
For a full example, check out the [example](https://github.com/aws-amplify/amplify-flutter/tree/main/packages/aws_signature_v4/example) project in the GitHub repo.
0 commit comments