Skip to content

Commit fc9f6c7

Browse files
committed
fixed map
1 parent 4560294 commit fc9f6c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Promise.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (obj *Promise) Finally(callback func(interface{})) interface{} {
191191
//// WE GO FUNCTIONALL BRRRRRRRRRRRRRR................. ///////////////
192192

193193
//Map ... for the bluebird affiniadoes , maps your array of promise with a new common then
194-
func Map(promises []*Promise, cb func(value interface{}) (interface{}, error)) []*Promise {
194+
func Map(promises []*Promise, cb Callback) []*Promise {
195195
promisesT := make([]*Promise, len(promises))
196196
for i, promise := range promises {
197197
promisesT[i] = promise.Then(cb)

0 commit comments

Comments
 (0)