Skip to content

Commit 5a0b3b0

Browse files
psiddhCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5c743b5 commit 5a0b3b0

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

extension/android/executorch_android/src/androidTest/java/org/pytorch/executorch/LlmModuleConversationHistoryTest.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,13 @@ class LlmModuleConversationHistoryTest {
4848
fun setUp() {
4949
val pteFile = File(getTestFilePath(TEST_FILE_NAME))
5050
requireNotNull(javaClass.getResourceAsStream(TEST_FILE_NAME)) {
51-
"Test resource $TEST_FILE_NAME not found; did android_test_setup.sh run?"
52-
}
53-
.use { pteStream -> FileUtils.copyInputStreamToFile(pteStream, pteFile) }
51+
"Test resource $TEST_FILE_NAME not found; did android_test_setup.sh run?"
52+
}.use { pteStream -> FileUtils.copyInputStreamToFile(pteStream, pteFile) }
5453

5554
val tokenizerFile = File(getTestFilePath(TOKENIZER_FILE_NAME))
5655
requireNotNull(javaClass.getResourceAsStream(TOKENIZER_FILE_NAME)) {
57-
"Test resource $TOKENIZER_FILE_NAME not found; did android_test_setup.sh run?"
58-
}
59-
.use { tokenizerStream -> FileUtils.copyInputStreamToFile(tokenizerStream, tokenizerFile) }
56+
"Test resource $TOKENIZER_FILE_NAME not found; did android_test_setup.sh run?"
57+
}.use { tokenizerStream -> FileUtils.copyInputStreamToFile(tokenizerStream, tokenizerFile) }
6058

6159
llmModule =
6260
LlmModule(getTestFilePath(TEST_FILE_NAME), getTestFilePath(TOKENIZER_FILE_NAME), 0.0f)

0 commit comments

Comments
 (0)