diff options
author | Matt Joiner <anacrolix@gmail.com> | 2019-11-06 16:14:47 +1100 |
---|---|---|
committer | Matt Joiner <anacrolix@gmail.com> | 2019-11-06 16:14:47 +1100 |
commit | e749ba3531cf430b66e1d3f310f53ea2972e3aa3 (patch) | |
tree | 328dbb9b2078908a8967483a0829ac4acb54cc9a /tx.go | |
parent | Add WouldBlock (diff) | |
download | stm-e749ba3531cf430b66e1d3f310f53ea2972e3aa3.tar.gz stm-e749ba3531cf430b66e1d3f310f53ea2972e3aa3.tar.xz |
Make returns explicit
Diffstat (limited to 'tx.go')
-rw-r--r-- | tx.go | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -84,14 +84,6 @@ func (tx *Tx) Assert(p bool) { } } -func (tx *Tx) Return(v interface{}) { - panic(_return{v}) -} - -type _return struct { - value interface{} -} - func (tx *Tx) reset() { for k := range tx.reads { delete(tx.reads, k) |