Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.6.1</Version>
<Version>10.6.2</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<Title>Excel Provider</Title>
<Description>Excel Provider</Description>
Expand Down
8 changes: 4 additions & 4 deletions src/ExcelProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public string DestinationFile

public override Schema GetOriginalDestinationSchema()
{
return schema = new Schema();
schema ??= GetOriginalSourceSchema();
return schema;
}

public override bool SchemaIsEditable => true;
Expand Down Expand Up @@ -310,7 +311,7 @@ private void GetSchemaForTableFromFile(Schema schema, Dictionary<string, ExcelRe

Schema IDestination.GetSchema()
{
schema ??= new Schema();
schema ??= GetOriginalSourceSchema();
return schema;
}

Expand Down Expand Up @@ -377,8 +378,7 @@ public override void OverwriteSourceSchemaToOriginal()
}

public override void OverwriteDestinationSchemaToOriginal()
{
schema = new Schema();
{
}

public override string ValidateDestinationSettings()
Expand Down
Loading