ソースを参照

removed unreachable code

pull/7/head
Tomas Gallucci 5年前
コミット
bbb412e20d
2個のファイルの変更0行の追加4行の削除
  1. +0
    -2
      collection.go
  2. +0
    -2
      post.go

+ 0
- 2
collection.go ファイルの表示

@@ -83,7 +83,6 @@ func (c *Client) GetCollection(alias string) (*Collection, error) {
} else {
return nil, fmt.Errorf("Problem getting collection: %s. %v\n", status, err)
}
return coll, nil
}

// GetCollectionPosts retrieves a collection's posts, returning the Posts
@@ -109,5 +108,4 @@ func (c *Client) GetCollectionPosts(alias string) (*[]Post, error) {
} else {
return nil, fmt.Errorf("Problem getting collection: %s. %v\n", status, err)
}
return coll.Posts, nil
}

+ 0
- 2
post.go ファイルの表示

@@ -115,7 +115,6 @@ func (c *Client) CreatePost(sp *PostParams) (*Post, error) {
} else {
return nil, fmt.Errorf("Problem getting post: %s. %v\n", status, err)
}
return p, nil
}

// UpdatePost updates a published post with the given PostParams. See
@@ -189,5 +188,4 @@ func (c *Client) ClaimPosts(sp *[]OwnedPostParams) (*[]ClaimPostResult, error) {
return nil, fmt.Errorf("Problem getting post: %s. %v\n", status, err)
}
// TODO: does this also happen with moving posts?
return p, nil
}

読み込み中…
キャンセル
保存