Skip to content

Commit

Permalink
Using FilesChanged if FileChanges in not present. #1111
Browse files Browse the repository at this point in the history
  • Loading branch information
BugDiver committed Jul 9, 2018
1 parent f0462eb commit 72109fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions refactor/refactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ func (agent *rephraseRefactorer) requestRunnerForRefactoring(testRunner runner.R
logger.Errorf(false, "Refactoring error response from runner: %v", refactorResponse.GetError())
runnerError = errors.New(refactorResponse.GetError())
}
if len(refactorResponse.GetFileChanges()) == 0 {
for _, file := range refactorResponse.GetFilesChanged() {
refactorResponse.FileChanges = append(refactorResponse.FileChanges, &gauge_messages.FileChanges{FileName: file})
}
}
return refactorResponse.GetFileChanges(), runnerError
}

Expand Down

0 comments on commit 72109fa

Please sign in to comment.