Jesulonimi21 / Swift-Algorand-Sdk

A Swift Sdk for interacting with the Algorand Blockchain
MIT License
19 stars 13 forks source link

Remove all force unwraps / force try #22

Open stefanomondino opened 2 years ago

stefanomondino commented 2 years ago

After #18 is merged, we should work on SDK safety.

Code is still full of force unwraps (someVar!.something()) and force try (try! something) which is dangerous as it could lead to crashes.

We should remove all of them, apps should not crash because of our SDK.

Fixing strategy should be:

It's not easy to spot them all, but using Xcode looking glass and searching for try! can be a good start.