Skip to content

Commit

Permalink
Fix #663.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Aug 9, 2020
1 parent 1e2d117 commit 304b0b4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016 DiffPlug
* Copyright 2016-2020 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,6 +40,8 @@ public FormatterStep newFormatterStep(FormatterStepConfig config) {
} else {
return ImportOrderStep.forJava().createFrom(order.split(","));
}
} else if (file == null && order == null) {
return ImportOrderStep.forJava().createFrom();
} else {
throw new IllegalArgumentException("Must specify exactly one of 'file' or 'order'.");
}
Expand Down

0 comments on commit 304b0b4

Please sign in to comment.