Skip to content

Commit c95cb19

Browse files
fix(IDE0057): use range operator for substring in to camelCase method
1 parent dc5b9f1 commit c95cb19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Packages/Federation.Sdk/Source/Helpers/QueryParametersHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ private static string ToCamelCase(string value)
4444
if (string.IsNullOrEmpty(value) || char.IsLower(value[0]))
4545
return value;
4646

47-
return char.ToLowerInvariant(value[0]) + value.Substring(1);
47+
return char.ToLowerInvariant(value[0]) + value[1..];
4848
}
4949
}

0 commit comments

Comments
 (0)