mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
[PM-2633] Warnings cleanup (#3010)
* Warnings cleanup * One-line response with null Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com> * Remove condition * Fix lint from suggestion --------- Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
This commit is contained in:
@ -14,12 +14,12 @@ namespace Bit.EfShared;
|
||||
public static class MigrationBuilderExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Reads an embedded resource for it's SQL contents and formats it with the specified direction for easier custom migration steps
|
||||
/// Reads an embedded resource for its SQL contents and formats it with the specified direction for easier custom migration steps
|
||||
/// </summary>
|
||||
/// <param name="migrationBuilder">The MigrationBuilder instance the sql should be applied to</param>
|
||||
/// <param name="resourceName">The file name portion of the resource name, it is assumed to be in a Scripts folder</param>
|
||||
/// <param name="dir">The direction of the migration taking place</param>
|
||||
public static void SqlResource(this MigrationBuilder migrationBuilder, string resourceName, [CallerMemberName] string dir = null)
|
||||
public static void SqlResource(this MigrationBuilder migrationBuilder, string resourceName, [CallerMemberName] string dir = "")
|
||||
{
|
||||
var formattedResourceName = string.IsNullOrEmpty(dir) ? resourceName : string.Format(resourceName, dir);
|
||||
|
||||
|
Reference in New Issue
Block a user