From 1074671c269075cd22432c67aee0614c67fda8b4 Mon Sep 17 00:00:00 2001 From: random1223 <3987237+random1223@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:39:30 -0700 Subject: [PATCH] Clean up code. --- .../source/dto/GitRepoDownloadRequestDto.java | 26 +++++++++---------- .../dto/GitRepoDownloadResponseDto.java | 2 -- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/scanner/src/main/java/io/codety/scanner/source/dto/GitRepoDownloadRequestDto.java b/scanner/src/main/java/io/codety/scanner/source/dto/GitRepoDownloadRequestDto.java index a5bb809..6e5ad0b 100644 --- a/scanner/src/main/java/io/codety/scanner/source/dto/GitRepoDownloadRequestDto.java +++ b/scanner/src/main/java/io/codety/scanner/source/dto/GitRepoDownloadRequestDto.java @@ -1,20 +1,18 @@ package io.codety.scanner.source.dto; public class GitRepoDownloadRequestDto { - - boolean authenticationRequired; - - String accountId; - Long githubInstallationId; - Integer externalGitProviderType; //1:github, 2:gitlab, 3:bitbucket. - String externalGitRepoId; - String gitRepoFullName; - String externalPullRequestId; - String externalPullRequestMergeTargetRef; - String cloneHttpsUrl; - String cloneSshUrl; - String gitBranchRef; - String gitCommitSha; + private boolean authenticationRequired; + private String accountId; + private Long githubInstallationId; + private Integer externalGitProviderType; //1:github, 2:gitlab, 3:bitbucket. + private String externalGitRepoId; + private String gitRepoFullName; + private String externalPullRequestId; + private String externalPullRequestMergeTargetRef; + private String cloneHttpsUrl; + private String cloneSshUrl; + private String gitBranchRef; + private String gitCommitSha; public boolean isAuthenticationRequired() { return authenticationRequired; diff --git a/scanner/src/main/java/io/codety/scanner/source/dto/GitRepoDownloadResponseDto.java b/scanner/src/main/java/io/codety/scanner/source/dto/GitRepoDownloadResponseDto.java index 0b73b96..b63cc3c 100644 --- a/scanner/src/main/java/io/codety/scanner/source/dto/GitRepoDownloadResponseDto.java +++ b/scanner/src/main/java/io/codety/scanner/source/dto/GitRepoDownloadResponseDto.java @@ -3,9 +3,7 @@ public class GitRepoDownloadResponseDto { private boolean success = false; - private String errorMsg; - private String sourcePath; public String getSourcePath() {