Merge changes I74537a28,Ib8d2a7d1

* changes:
  importer/foursquare: remove unused initRoot function
  importer: doc typo
This commit is contained in:
mpl 2014-04-18 20:50:43 +00:00 committed by Gerrit Code Review
commit 8def41a4b5
2 changed files with 1 additions and 11 deletions

View File

@ -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 {

View File

@ -204,7 +204,7 @@ func (rc *RunContext) Credentials() (clientID, clientSecret string, err error) {
// missing anything).
func (rc *RunContext) AccountNode() *Object { return rc.ia.acct }
// AccountNode returns the initially-empty permanode storing the root
// RootNode returns the initially-empty permanode storing the root
// of this account's data. You can change anything at will. This will
// typically be modeled as a dynamic directory (with camliPath:xxxx
// attributes), where each path element is either a file, object, or