Skip to content

Commit

Permalink
Make error handling in XMLDecoder simpler & safer (#41)
Browse files Browse the repository at this point in the history
There were way too many functions returning `throw -> _?` in `XMLDecoder`, which should only ever return `throw -> _` (turning the `nil` case into an error of its own).

πŸ‘·πŸ»β€β™€οΈ I also managed to get rid of quite a bunch of force-unwraps.
Especially the ones eventually leading to crashes in #38 and #34. πŸ’₯

* Make error handling in `XMLDecoder` simpler & safer
* SwiftFormat and related cleanup
  • Loading branch information
regexident authored and MaxDesiatov committed Dec 23, 2018
1 parent 4cad2df commit 3d22e01
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 134 deletions.

0 comments on commit 3d22e01

Please sign in to comment.