Skip to content

Commit

Permalink
Removed unnecessary console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
gardusig committed Jun 16, 2023
1 parent 25ddde8 commit fda6da0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions preprocesscodeblocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ const cloneRepoIfNeeded = (gitUrl, branchOrCommit) => {
return new Promise((resolve, reject) => {
const gitFolder = gitUrl.substring(gitUrl.lastIndexOf('/') + 1, gitUrl.indexOf('.git'));
const destFolder = `./gitrepos/${gitFolder}`;
console.log('git folder:', gitFolder)
console.log('dest folder:', destFolder)
let command;
if (!fs.existsSync(path.join(destFolder, '.git'))) {
command = `git clone --single-branch --branch ${branchOrCommit} ${gitUrl} ${destFolder}`;
Expand Down Expand Up @@ -108,11 +106,6 @@ const searchDirectory = async (dirPath, codeBlocks) => {
return null
}
const { username, repository, branchOrCommit, file } = urlInfo;
console.log('username:', username)
console.log('repository:', repository)
console.log('branchOrCommit:', branchOrCommit)
console.log('file:', file)
console.log('section:', section)
await cloneRepoIfNeeded(gitUrl, branchOrCommit).then(async () => {
console.log("Repo clone/update successful")
const [extractedContent, lineStart, lineEnd] = await extractContentFromFile(repository, file, section);
Expand Down

0 comments on commit fda6da0

Please sign in to comment.