Skip to content

Commit

Permalink
Close out #99
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Apr 28, 2017
1 parent d45a27a commit 241f4a0
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void indexDocsByDelta(Path path, String repoName, String repoLocations, S
List<String[]> reportList = new ArrayList<>();

for(String changedFile: repositoryChanged.getChangedFiles()) {
if (this.shouldJobPauseOrTerminate() == true) {
if (this.shouldJobPauseOrTerminate()) {
return;
}

Expand All @@ -277,16 +277,13 @@ public void indexDocsByDelta(Path path, String repoName, String repoLocations, S
}

String md5Hash = this.getFileMd5(changedFile);

String languageName = Singleton.getFileClassifier().languageGuesser(changedFile, codeLinesReturn.getCodeLines());

String fileLocation = this.getRelativeToProjectPath(path.toString(), changedFile);
String fileLocationFilename = changedFile.replace(fileRepoLocations, Values.EMPTYSTRING);
String repoLocationRepoNameLocationFilename = changedFile;

String newString = this.getBlameFilePath(fileLocationFilename);
String codeOwner = this.getCodeOwner(codeLinesReturn.getCodeLines(), newString, repoName, fileRepoLocations, scl);

if (this.LOWMEMORY) {
try {
Singleton.getCodeIndexer().indexDocument(new CodeIndexDocument(repoLocationRepoNameLocationFilename, repoName, fileName, fileLocation, fileLocationFilename, md5Hash, languageName, codeLinesReturn.getCodeLines().size(), StringUtils.join(codeLinesReturn.getCodeLines(), " "), repoRemoteLocation, codeOwner));
Expand Down

0 comments on commit 241f4a0

Please sign in to comment.