From 4421489c88ade67bdeab8a0c44cec7d7122d8d20 Mon Sep 17 00:00:00 2001 From: Sashir Estela Date: Sun, 21 Jul 2024 00:20:57 +0000 Subject: [PATCH] Fix format issues --- .../io/github/sashirestela/openai/demo/UploadDemo.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/demo/java/io/github/sashirestela/openai/demo/UploadDemo.java b/src/demo/java/io/github/sashirestela/openai/demo/UploadDemo.java index 9c95993..17b6f3e 100644 --- a/src/demo/java/io/github/sashirestela/openai/demo/UploadDemo.java +++ b/src/demo/java/io/github/sashirestela/openai/demo/UploadDemo.java @@ -28,9 +28,12 @@ public void splitSourceFile() throws IOException { String fullFileName; String chunkSizeMB; - while ((fullFileName = System.console().readLine("Enter the full file name to upload: ")).isBlank()); - while ((chunkSizeMB = System.console().readLine("Enter the chunk size in MB: ")).isBlank()); - while ((splitPath = System.console().readLine("Enter the path to put splittings: ")).isBlank()); + while ((fullFileName = System.console().readLine("Enter the full file name to upload: ")).isBlank()) + ; + while ((chunkSizeMB = System.console().readLine("Enter the chunk size in MB: ")).isBlank()) + ; + while ((splitPath = System.console().readLine("Enter the path to put splittings: ")).isBlank()) + ; File sourceFile = new File(fullFileName); fileName = sourceFile.getName(); mimeType = Files.probeContentType(Path.of(fullFileName));