Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alex3165 committed Mar 16, 2017
1 parent b374bc3 commit 6a06626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/api/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export function api(url: string | any, init: any): Promise<any> {
if (!response.ok) {
process.exitCode = 1
const responseJSON = await response.json()
console.error(`Request failed [${response.status}]: ${response.url}`)
console.error(`Response: ${JSON.stringify(responseJSON, null, " ")}`)
console.warn(`Request failed [${response.status}]: ${response.url}`)
console.warn(`Response: ${JSON.stringify(responseJSON, null, " ")}`)
}

return response
Expand Down
3 changes: 1 addition & 2 deletions source/platforms/GitHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export class GitHub {
* @returns {Promise<any>} JSON representation
*/
async getReviewInfo(): Promise<GitHubPRDSL> {
const deets = await this.api.getPullRequestInfo()
return await deets.json()
return await this.api.getPullRequestInfo()
}

/**
Expand Down

0 comments on commit 6a06626

Please sign in to comment.