Skip to content

Commit

Permalink
refactor: apply ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Artiukhov committed Oct 7, 2024
1 parent 4f7c5a3 commit 6f8b072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class PromptGenerator(
fun generatePromptForLine(
lineUnderTest: String,
interestingClasses: List<ClassRepresentation>,
testSamplesCode: String
testSamplesCode: String,
): String {
val prompt = PromptBuilder(promptTemplates.linePrompt)
.insertLanguage(context.promptConfiguration.desiredLanguage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ class PromptManager(
interestingClassesFromMethod,
testSamplesCode,
)
}
else {
} else {
return@Computable promptGenerator.generatePromptForLine(
lineUnderTest,
interestingClasses,
Expand Down Expand Up @@ -315,8 +314,7 @@ class PromptManager(
* we already know that the current language is supported
*/
return psiHelper!!.generateMethodDescriptor(containingPsiMethod)
}
else {
} else {
/**
* When no PSI class provided we are dealing with a top-level function.
* Processing function outside the class
Expand Down

0 comments on commit 6f8b072

Please sign in to comment.