Skip to content

Commit

Permalink
Stop the compilation complaining in prod mode
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Mar 12, 2018
1 parent 66b668e commit 9bbf47e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions source/ci_source/providers/Nevercode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,4 @@ export class Nevercode implements CISource {
get ciRunURL() {
return process.env.NEVERCODE_BUILD_URL
}

private get branchName(): string {
if (this.isPR) {
return this.env.NEVERCODE_PULL_REQUEST_SOURCE
} else {
return this.env.NEVERCODE_BRANCH
}
}
}
2 changes: 1 addition & 1 deletion source/platforms/GitHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class GitHub {
*/
getPlatformDSLRepresentation = async (): Promise<GitHubJSONDSL> => {
const pr = await this.getReviewInfo()
if (pr === {}) {
if ((pr as any) === {}) {
process.exitCode = 1
throw `
Could not find pull request information,
Expand Down

0 comments on commit 9bbf47e

Please sign in to comment.