Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Mar 29, 2017
1 parent 3987162 commit 4b3022e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/cryptomator/cli/Args.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class Args {
private static final String USAGE = "java -jar cryptomator-cli.jar" //
+ " --bind localhost --port 8080" //
+ " --vault mySecretVault=/path/to/vault --password mySecretVault=FooBar3000" //
+ " --vault myOtherVault=/path/to/other/vault --password myOtherVault=BarFoo4000"
+ " --vault myThirdVault=/path/to/third/vault --passwordfile myThirdVault=/path/to/passwordfile";
+ " --vault myOtherVault=/path/to/other/vault --password myOtherVault=BarFoo4000" //
+ " --vault myThirdVault=/path/to/third/vault --passwordfile myThirdVault=/path/to/passwordfile";
private static final Options OPTIONS = new Options();
static {
OPTIONS.addOption(Option.builder() //
Expand Down Expand Up @@ -110,9 +110,9 @@ public String getVaultPasswordPath(String vaultName) {
}

public String getVaultPassword(String vaultName) {
if (vaultPasswords.getProperty(vaultName) == null){
if (vaultPasswords.getProperty(vaultName) == null) {
Path vaultPasswordPath = Paths.get(vaultPasswordFiles.getProperty(vaultName));
if (Files.isReadable(vaultPasswordPath) && Files.isRegularFile(vaultPasswordPath)){
if (Files.isReadable(vaultPasswordPath) && Files.isRegularFile(vaultPasswordPath)) {
try (Stream<String> lines = Files.lines(vaultPasswordPath)) {
return lines.findFirst().get().toString();
} catch (IOException e) {
Expand Down

0 comments on commit 4b3022e

Please sign in to comment.