Skip to content

Commit 6155490

Browse files
committed
Add comment
1 parent 0956db6 commit 6155490

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataexport/ExportCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public Integer call() throws Exception {
6161
FileUtils.validateFilePath(scalarDbPropertiesFilePath);
6262
validatePositiveValue(
6363
spec.commandLine(), dataChunkSize, DataLoaderError.INVALID_DATA_CHUNK_SIZE);
64+
// Only validate the argument when provided by the user, if not set a default
6465
if (maxThreads != null) {
6566
validatePositiveValue(spec.commandLine(), maxThreads, DataLoaderError.INVALID_MAX_THREADS);
6667
} else {

data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public Integer call() throws Exception {
6161
spec.commandLine(), dataChunkSize, DataLoaderError.INVALID_DATA_CHUNK_SIZE);
6262
validatePositiveValue(
6363
spec.commandLine(), transactionSize, DataLoaderError.INVALID_TRANSACTION_SIZE);
64+
// Only validate the argument when provided by the user, if not set a default
6465
if (maxThreads != null) {
6566
validatePositiveValue(spec.commandLine(), maxThreads, DataLoaderError.INVALID_MAX_THREADS);
6667
} else {

0 commit comments

Comments
 (0)