Skip to content

Commit

Permalink
chore(gitFileSystemService): rm redundant logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 committed Nov 20, 2023
1 parent 2e06bec commit 8d47996
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
13 changes: 0 additions & 13 deletions src/services/db/GitFileSystemService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,19 +360,6 @@ export default class GitFileSystemService {
)
}

hi(siteName: string, originalStagingCommitSha: string) {
const rollbackRes = this.rollback(
siteName,
originalStagingCommitSha,
STAGING_BRANCH
)
.andThen(() =>
this.rollback(siteName, originalStagingCommitSha, STAGING_LITE_BRANCH)
)
.unwrapOr(false)
if (!rollbackRes) throw new GitFileSystemError("Rollback failure")
}

cloneBranch(
repoName: string,
isStaging: boolean
Expand Down
3 changes: 0 additions & 3 deletions src/services/db/GitHubService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ export default class GitHubService {
content: encodedContent,
branch: branchName,
}
console.log("params", params)
const resp = await this.axiosInstance.put(endpoint, params, {
headers: {
Authorization: `token ${accessToken}`,
Expand Down Expand Up @@ -777,8 +776,6 @@ export default class GitHubService {
})
}
} else if (item.path === newPath && item.type !== "tree") {
console.log("item.path", item.path)
console.log("newPath", newPath)
throw new ConflictError("Target file already exists")
} else if (item.path === oldPath && item.type !== "tree") {
// Add file to new directory
Expand Down

0 comments on commit 8d47996

Please sign in to comment.