From 7fa5d810935461c04c5089c4f4375ae86cd991e8 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Sat, 10 Jan 2015 20:21:21 -0800 Subject: [PATCH] refactor(core): rename --- core/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.go b/core/core.go index 8ea5979cb..ea13edc09 100644 --- a/core/core.go +++ b/core/core.go @@ -92,11 +92,11 @@ var errTODO = errors.New("TODO") type ConfigOption func(ctx context.Context) (*IpfsNode, error) func NewIPFSNode(ctx context.Context, option ConfigOption) (*IpfsNode, error) { - config, err := option(ctx) + node, err := option(ctx) if err != nil { return nil, err } - return config, nil + return node, nil } func Offline(cfg *config.Config) ConfigOption {