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
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageVersion Include="Moq" Version="4.20.72" />
<PackageVersion Include="Moq.AutoMock" Version="3.5.0" />
<PackageVersion Include="NPOI" Version="2.7.4" />
<PackageVersion Include="NPOI" Version="2.7.5" />
<PackageVersion Include="Serilog" Version="4.3.0" />
<PackageVersion Include="Serilog.Extensions.Hosting" Version="9.0.0" />
<PackageVersion Include="Serilog.Sinks.Console" Version="6.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion PhoneAssistant.Cli/BaseImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static async Task ExecuteAsync(FileInfo baseFile)
Log.Information("Importing EE Base report from {0}", baseFile.FullName);

using FileStream? stream = new(baseFile.FullName, FileMode.Open, FileAccess.Read);
using IWorkbook workbook = WorkbookFactory.Create(stream, readOnly: true);
using IWorkbook workbook = WorkbookFactory.Create(stream);
ISheet sheet = workbook.GetSheetAt(0);
IRow header = sheet.GetRow(0);
ICell cell = header.GetCell(0);
Expand Down
2 changes: 1 addition & 1 deletion PhoneAssistant.Cli/Knox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static void Execute(DirectoryInfo workFolder)
HashSet<string> imeiSet = [.. activeSIMs.Select(sim => sim.IMEI_MEID)];

using FileStream stream = new(ciFile.FullName, FileMode.Open, FileAccess.Read);
using IWorkbook workbook = WorkbookFactory.Create(stream, readOnly: true);
using IWorkbook workbook = WorkbookFactory.Create(stream);
ISheet ciSheet = workbook.GetSheetAt(0);

IRow headerRow = ciSheet.GetRow(ciSheet.FirstRowNum);
Expand Down
2 changes: 1 addition & 1 deletion Reconcile/ImportMS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Result<List<Device>> Execute()
try
{
using FileStream stream = new(importFile, FileMode.Open, FileAccess.Read);
using IWorkbook workbook = WorkbookFactory.Create(stream, readOnly: true);
using IWorkbook workbook = WorkbookFactory.Create(stream);

Result<ISheet> resultSheet = Import.IsValidSheet(workbook, SheetName, CheckValue, A1);
if (resultSheet.IsFailed)
Expand Down
2 changes: 1 addition & 1 deletion Reconcile/ImportSCC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Result<List<Disposal>> Execute()
try
{
using FileStream stream = new(importFile, FileMode.Open, FileAccess.Read);
using IWorkbook workbook = WorkbookFactory.Create(stream, readOnly: true);
using IWorkbook workbook = WorkbookFactory.Create(stream);

Result<ISheet> resultSheet = Import.IsValidSheet(workbook, SheetName, CheckValue, A2);
if (resultSheet.IsFailed) return Result.Fail(resultSheet.Errors);
Expand Down