Commits

Sam Adams  committed aa9688a

Always set URL

  • Participants
  • Parent commits ae18b09

Comments (0)

Files changed (1)

File src/main/java/net/chempound/client/cli/command/DepositCommand.java

 
         final DepositItemRequest request = createDepositRequest(globalOptions);
         try {
+            request.withUri(URI.create(globalOptions.repository));
             final DepositItemResponse depositReceipt = client.depositItem(request);
         } catch (Exception e) {
             e.printStackTrace();
         setTitle(request);
         setSlug(request);
 
-        request.withUri(URI.create(globalOptions.repository));
         return request;
     }