Add checkstyle rules (#274)

This commit is contained in:
Carl-Robert 2023-11-16 17:15:11 +02:00 committed by GitHub
parent fe613afc74
commit c4115e257b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
72 changed files with 1129 additions and 564 deletions

View file

@ -196,9 +196,9 @@ public final class ConversationService {
return "YouCode";
case LLAMA_CPP:
var llamaSettings = LlamaSettingsState.getInstance();
return llamaSettings.isUseCustomModel() ?
llamaSettings.getCustomLlamaModelPath() :
llamaSettings.getHuggingFaceModel().getCode();
return llamaSettings.isUseCustomModel()
? llamaSettings.getCustomLlamaModelPath()
: llamaSettings.getHuggingFaceModel().getCode();
default:
throw new RuntimeException("Could not find corresponding service mapping");
}