-
Notifications
You must be signed in to change notification settings - Fork 16
Support for custom domains. #43
Conversation
With this change we are allowing to set "include_wordpressdotcom", "only_wordpressdotcom". Their default values remain as true.
| "only_wordpressdotcom": true as AnyObject] | ||
| } | ||
| return result | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could every case return directly the [String: AnyObject]? Also could the function be private?
| throw DecodingError.dataCorruptedError( | ||
| in: container, | ||
| debugDescription: "Cannot decode date string \(dateStr)" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the if let be guard let date ... and throw the error? So we can return the date after it without the if else statement.
|
Hey @jklausa I only left 2 comments, but it looks great so far! |
|
uhh not what i was going for exactly here |
|
Hey @jklausa |
|
@aerych GitHub is having some weird hiccups lately — I've addressed those way back when, but it's not showing in the inline diffs — you have to go to "Files changed" up top to see it :) |
|
Fo sho! |
This his mostly contents of #25, which was mostly reviewed already by me and @ScoutHarris before — just with some minor cleanups and with latest
developmerged in.I'm gonna leave it open after the review for a while, since it's possible I might need to do some changes while working on the WPiOS part of it, but it's close enough where I thought another pair of eyes wouldn't hurt :)