summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimport/core.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-05 14:59:12 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-05 14:59:12 (GMT)
commitc9f434c9604bf564f02ba46e445b1ab08748adac (patch)
treef2ec2085715a01f2c900ba2837e1fa593d7e11ac /src/helsinki.at/rhimport/core.go
parentff149324fb78e2cb0ae2484c79c052f38c27d4d2 (diff)
streamlined the usage of rhimport.NewContext
Diffstat (limited to 'src/helsinki.at/rhimport/core.go')
-rw-r--r--src/helsinki.at/rhimport/core.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helsinki.at/rhimport/core.go b/src/helsinki.at/rhimport/core.go
index 9927be9..986327b 100644
--- a/src/helsinki.at/rhimport/core.go
+++ b/src/helsinki.at/rhimport/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