Skip to content

Commit 4b658df

Browse files
committed
lint fixes
1 parent b1bb50d commit 4b658df

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

csharp/src/Drivers/Apache/Spark/SparkHttpConnection.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,23 +251,23 @@ protected internal override Task<TRowSet> GetRowSetAsync(TGetPrimaryKeysResp res
251251
internal override SparkServerType ServerType => SparkServerType.Http;
252252

253253
protected override int ColumnMapIndexOffset => 1;
254-
254+
255255
private string GetUserAgent()
256256
{
257257
// Build the base user agent string with Thrift version
258258
string thriftVersion = GetThriftVersion();
259259
string thriftComponent = string.IsNullOrEmpty(thriftVersion) ? "Thrift" : $"Thrift/{thriftVersion}";
260260
string baseUserAgent = $"{DriverName.Replace(" ", "")}/{ProductVersionDefault} {thriftComponent}";
261-
261+
262262
// Check if a client has provided a user-agent entry
263263
if (Properties.TryGetValue(SparkParameters.UserAgentEntry, out string? userAgentEntry) && !string.IsNullOrWhiteSpace(userAgentEntry))
264264
{
265265
return $"{baseUserAgent} {userAgentEntry}";
266266
}
267-
267+
268268
return baseUserAgent;
269269
}
270-
270+
271271
private string GetThriftVersion()
272272
{
273273
try

csharp/test/Drivers/Apache/Spark/SparkHttpConnectionUserAgentTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@ private string GetUserAgentFromConnection(Dictionary<string, string> properties)
145145
return (string)getUserAgentMethod.Invoke(connection, null)!;
146146
}
147147
}
148-
}
148+
}

0 commit comments

Comments
 (0)