filecoin-project / specs-actors

DEPRECATED Specification of builtin actors, in the form of executable code.
Other
86 stars 102 forks source link

Adding MustGet method to adt.Array in order to simplify code #1523

Closed laudiacay closed 1 year ago

laudiacay commented 3 years ago

677

Add a mustget function so that we don’t have to do things like say if err != nil {error out} if !found {error out}

This is a draft because i want to work the new pattern into the code in at least a few places before we merge it :)

codecov-commenter commented 3 years ago

Codecov Report

Merging #1523 (b0b5e29) into next (f1c1407) will decrease coverage by 0.0%. The diff coverage is 0.0%.

@@           Coverage Diff           @@
##            next   #1523     +/-   ##
=======================================
- Coverage   71.5%   71.4%   -0.1%     
=======================================
  Files         73      73             
  Lines       8565    8571      +6     
=======================================
  Hits        6126    6126             
- Misses      1554    1560      +6     
  Partials     885     885             
ZenGround0 commented 1 year ago

Archiving repo