3 Commits a8bbfd0dfa ... cc5beb2a69

Author SHA1 Message Date
  Adam Pioterek cc5beb2a69 Merge branch 'v1.0.1' into develop 4 years ago
  Adam Pioterek 258ee9cb64 update changelog 4 years ago
  Adam Pioterek 25b001623d fix Handle 4 years ago
2 changed files with 9 additions and 1 deletions
  1. 9 0
      CHANGELOG.rst
  2. 0 1
      gott.go

+ 9 - 0
CHANGELOG.rst

@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
 
 The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_`, using ReStructuredText instead of Markdown, and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
 
+[1.0.1] - 2019-06-29
+====================
+
+Fixed
+-----
+
+* OnSuccess in Handle called once only
+
+
 [1.0.0] – 2019-06-27
 ====================
 

+ 0 - 1
gott.go

@@ -116,7 +116,6 @@ func (r *Result) Catch(fn func(...interface{}) interface{}) (result *Result) {
 // Handle returns the receiver.
 func (r *Result) Handle(onSuccess func(...interface{}), onError func(error)) *Result {
 	if r.e == nil {
-		onSuccess(r.s)
 		if s, ok := r.s.(Tuple); ok {
 			onSuccess(s...)
 		} else {