Skip to content

Commit

Permalink
chore: format new code
Browse files Browse the repository at this point in the history
  • Loading branch information
bevzzz committed Dec 10, 2024
1 parent f292312 commit a8c1ad6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public Future<Result<Void>> run(FutureCallback<Result<Void>> callback) {
String path = String.format("/backups/%s/%s", UrlEncoder.encodePathParam(backend), UrlEncoder.encodePathParam(backupId));

List<String> queryParams = new ArrayList<>();
if (this.bucket != null){
if (this.bucket != null) {
queryParams.add(UrlEncoder.encodeQueryParam("bucket", this.bucket));
}
if (this.backupPath != null){
if (this.backupPath != null) {
queryParams.add(UrlEncoder.encodeQueryParam("path", this.backupPath));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ public Future<Result<BackupCreateStatusResponse>> run(FutureCallback<Result<Back
String path = String.format("/backups/%s/%s", UrlEncoder.encodePathParam(backend), UrlEncoder.encodePathParam(backupId));

List<String> queryParams = new ArrayList<>();
if (this.bucket != null){
if (this.bucket != null) {
queryParams.add(UrlEncoder.encodeQueryParam("bucket", this.bucket));
}
if (this.backupPath != null){
if (this.backupPath != null) {
queryParams.add(UrlEncoder.encodeQueryParam("path", this.backupPath));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ public Future<Result<BackupRestoreStatusResponse>> run(FutureCallback<Result<Bac
String path = String.format("/backups/%s/%s/restore", UrlEncoder.encodePathParam(backend), UrlEncoder.encodePathParam(backupId));

List<String> queryParams = new ArrayList<>();
if (this.bucket != null){
if (this.bucket != null) {
queryParams.add(UrlEncoder.encodeQueryParam("bucket", this.bucket));
}
if (this.backupPath != null){
if (this.backupPath != null) {
queryParams.add(UrlEncoder.encodeQueryParam("path", this.backupPath));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ private String path() {
String path = String.format("/backups/%s/%s", backend, backupId);

List<String> queryParams = new ArrayList<>();
if (this.bucket != null){
if (this.bucket != null) {
queryParams.add(UrlEncoder.encodeQueryParam("bucket", this.bucket));
}
if (this.backupPath != null){
if (this.backupPath != null) {
queryParams.add(UrlEncoder.encodeQueryParam("path", this.backupPath));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ private String path() {
String path = String.format("/backups/%s/%s", backend, backupId);

List<String> queryParams = new ArrayList<>();
if (this.bucket != null){
if (this.bucket != null) {
queryParams.add(UrlEncoder.encodeQueryParam("bucket", this.bucket));
}
if (this.backupPath != null){
if (this.backupPath != null) {
queryParams.add(UrlEncoder.encodeQueryParam("path", this.backupPath));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ private String path() {
String path = String.format("/backups/%s/%s/restore", backend, backupId);

List<String> queryParams = new ArrayList<>();
if (this.bucket != null){
if (this.bucket != null) {
queryParams.add(UrlEncoder.encodeQueryParam("bucket", this.bucket));
}
if (this.backupPath != null){
if (this.backupPath != null) {
queryParams.add(UrlEncoder.encodeQueryParam("path", this.backupPath));
}

Expand Down

0 comments on commit a8c1ad6

Please sign in to comment.