1
0
mirror of https://github.com/writeas/go-writeas.git synced 2025-07-27 19:18:35 +00:00

Merge pull request #7 from ProfessorTom/remove_unreachable_code

removed unreachable code
This commit is contained in:
Matt Baer 2018-07-03 14:17:09 -04:00 committed by GitHub
commit 64dec060b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

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

View File

@ -115,7 +115,6 @@ func (c *Client) CreatePost(sp *PostParams) (*Post, error) {
} else {
return nil, fmt.Errorf("Problem getting post: %d. %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: %d. %v\n", status, err)
}
// TODO: does this also happen with moving posts?
return p, nil
}