diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-08-16 19:52:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-16 19:52:35 -0500 |
| commit | aa662a18834aef3373bf3a33bdc456d9889b3359 (patch) | |
| tree | 42840efdd6ed5c63a66bea2bec40e82c2708f581 /src/slskd/Core/Data/ConnectionString.cs | |
| parent | 5db8ab2a5fcfa8ce9df376e5c711dc17c0d8e66d (diff) | |
| parent | 1c1eb346584e331d4201b213308d2174a10e513b (diff) | |
| download | slskd-aa662a18834aef3373bf3a33bdc456d9889b3359.tar.gz | |
Merge pull request #1423 from slskd/statistics
Eliminate 'magic strings' when referencing databases and connection strings
Diffstat (limited to 'src/slskd/Core/Data/ConnectionString.cs')
| -rw-r--r-- | src/slskd/Core/Data/ConnectionString.cs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/slskd/Core/Data/ConnectionString.cs b/src/slskd/Core/Data/ConnectionString.cs index fb52c1e1..a02b30a4 100644 --- a/src/slskd/Core/Data/ConnectionString.cs +++ b/src/slskd/Core/Data/ConnectionString.cs @@ -22,26 +22,9 @@ namespace slskd; /// </summary> public record ConnectionString { - /// <summary> - /// Gets the connection string. - /// </summary> public required string Value { get; init; } - /// <summary> - /// Implicit conversion from string to ConnectionString. - /// </summary> - /// <param name="value">The string value.</param> public static implicit operator ConnectionString(string value) => new() { Value = value }; - - /// <summary> - /// Implicit conversion from ConnectionString to string. - /// </summary> - /// <param name="connectionString">The ConnectionString instance.</param> public static implicit operator string(ConnectionString connectionString) => connectionString.Value; - - /// <summary> - /// Returns the string representation of the connection string. - /// </summary> - /// <returns>The connection string value.</returns> public override string ToString() => Value; }
\ No newline at end of file |
