From 489d4cc9c6a84728ac18e6b65b45b933f34eb5e4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 5 Jan 2016 15:59:12 +0100 Subject: streamlined the usage of rhimport.NewContext diff --git a/core.go b/core.go index 9927be9..986327b 100644 --- a/core.go +++ b/core.go @@ -86,11 +86,11 @@ type Context struct { Cancel <-chan bool } -func NewContext(conf *Config, rddb *RdDbChan, user string) *Context { +func NewContext(conf *Config, rddb *RdDbChan) *Context { ctx := new(Context) ctx.conf = conf ctx.rddb = rddb - ctx.UserName = user + ctx.UserName = "" ctx.Password = "" ctx.Trusted = false ctx.ShowId = 0 -- cgit v0.10.2