mirror of https://github.com/perkeep/perkeep.git
importer/foursquare: remove unused initRoot function
Change-Id: I74537a28ee31bf5062322aea113453030950a077
This commit is contained in:
parent
09a80dff99
commit
98e895de45
|
@ -113,16 +113,6 @@ func (r *run) token() string {
|
|||
return r.RunContext.AccountNode().Attr(acctAttrAccessToken)
|
||||
}
|
||||
|
||||
func (r *run) initRoot() error {
|
||||
root := r.RootNode()
|
||||
user := r.AccountNode().Attr("foursquareUser")
|
||||
if user == "" {
|
||||
return errors.New("The 'foursquareUser' attribute on the account node is empty.")
|
||||
}
|
||||
title := fmt.Sprintf("Foursquare (%s)", user)
|
||||
return root.SetAttr("title", title)
|
||||
}
|
||||
|
||||
func (im *imp) Run(ctx *importer.RunContext) error {
|
||||
clientId, secret, err := ctx.Credentials()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue