Skip to content

Conversation

@royjit
Copy link
Contributor

@royjit royjit commented Dec 1, 2020

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link

codecov bot commented Dec 1, 2020

Codecov Report

Merging #922 (2c6f71e) into main (d49854f) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #922      +/-   ##
==========================================
- Coverage   67.29%   67.27%   -0.03%     
==========================================
  Files         895      895              
  Lines       35389    35391       +2     
==========================================
- Hits        23814    23808       -6     
- Misses      11575    11583       +8     
Flag Coverage Δ
API_plugin_unit_test 62.49% <ø> (-0.08%) ⬇️
Analytics_plugin_unit_test 72.38% <ø> (ø)
Auth_plugin_unit_test 48.59% <0.00%> (-0.03%) ⬇️
DataStore_plugin_unit_test 83.03% <ø> (ø)
Predictions_plugin_unit_test 49.69% <ø> (ø)
Storage_plugin_unit_test 74.74% <ø> (ø)
build_test_amplify 63.07% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...AuthorizationProviderAdapter+SignedInSession.swift 0.00% <0.00%> (ø)
.../DataStore/Model/Internal/Schema/ModelSchema.swift 82.35% <0.00%> (-5.89%) ⬇️
...Hub/DefaultPluginTests/DefaultHubPluginTests.swift 83.72% <0.00%> (-3.49%) ⬇️
...n/Operation/AWSGraphQLOperation+APIOperation.swift 50.84% <0.00%> (-3.39%) ⬇️
...ugins/AWSHubPlugin/Internal/SerialDispatcher.swift 88.23% <0.00%> (+5.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d49854f...308c9c3. Read the comment docs.

Copy link
Member

@palpatim palpatim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change requested to future proof the guard a bit


awsMobileClient.getIdentityId().continueWith { (task) -> Any? in
guard task.error == nil else {
if let urlError = task.error as NSError?, urlError.domain == NSURLErrorDomain {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: consider mutually exclusive if/else block here to ensure you return from each condition

@royjit royjit merged commit 603543a into main Dec 1, 2020
@royjit royjit deleted the royjit/bugfixFetchAuth branch December 1, 2020 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants