Skip to content

Commit e3497bd

Browse files
committed
[#8] [edit] formatting
1 parent fa26e89 commit e3497bd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Etcd.Microsoft.Extensions.Configuration/Auth/Credentials.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public Credentials(string userName, string password,
3838
PasswordSource = passwordSource;
3939
Information = information;
4040
}
41+
4142
/// <summary>
4243
/// Gets the source of the user name.
4344
/// </summary>
@@ -72,7 +73,7 @@ public Credentials(string userName, string password,
7273
/// <summary>
7374
/// Gets the string representation of the credentials.
7475
/// </summary>
75-
override public string ToString() => Information ?? "Code based credentials";
76+
override public string ToString() => Information ?? "etcd code based credentials";
7677

7778
/// <summary>
7879
/// Creates a new credentials instance overriding values from environment variables if they are exists.
@@ -200,20 +201,20 @@ private static string FormatInformation(
200201

201202
private static string FormatUserNameInformation(CredentialsSource userNameSource, string? userNameEnvironmentVariableName = null)
202203
{
203-
var result = $"UserName source: {userNameSource}";
204+
var result = $"etcd user name source: {userNameSource}";
204205

205206
if (userNameSource == CredentialsSource.EnvironmentVariables)
206-
result += $", variable name: {userNameEnvironmentVariableName}";
207+
result += $"({userNameEnvironmentVariableName})";
207208

208209
return result;
209210
}
210211

211212
private static string FormatPassword(CredentialsSource passwordSource, string? passwordEnvironmentVariableName = null)
212213
{
213-
var result = $"password source: {passwordSource}";
214+
var result = $"etcd password source: {passwordSource}";
214215

215216
if (passwordSource == CredentialsSource.EnvironmentVariables)
216-
result += $", variable name: {passwordEnvironmentVariableName}";
217+
result += $"({passwordEnvironmentVariableName})";
217218

218219
return result;
219220
}

0 commit comments

Comments
 (0)