Skip to content

Commit

Permalink
issue 3725 checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
SilinPavel committed Oct 1, 2024
1 parent 3b6c652 commit ae0165a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class BitbucketCloudService implements GitClientService {
private static final String BITBUCKET_CLOUD_FILE_MARKER = "commit_file";
private static final int MAX_DEPTH = 20;
private static final String PAGE_PARAMETER = "page=";
private static final String X_TOKEN_AUTH = "x-token-auth";
private final BitbucketCloudMapper mapper;
private final MessageHelper messageHelper;
private final PreferenceManager preferenceManager;
Expand Down Expand Up @@ -205,7 +206,7 @@ public GitCredentials getCloneCredentials(final Pipeline pipeline, final boolean
final GitRepositoryUrl repositoryUrl = GitRepositoryUrl.from(pipeline.getRepository());
final String token = pipeline.getRepositoryToken();
final AuthType authType = preferenceManager.getPreference(SystemPreferences.BITBUCKET_CLOUD_AUTH_TYPE);
final String username = AuthType.TOKEN.equals(authType) ? "x-token-auth" :
final String username = AuthType.TOKEN.equals(authType) ? X_TOKEN_AUTH :
repositoryUrl.getUsername().orElseThrow(() -> buildUrlParseError(USER_NAME));
final String host = repositoryUrl.getHost();
return GitCredentials.builder()
Expand Down

0 comments on commit ae0165a

Please sign in to comment.