Skip to content

Commit

Permalink
chore: Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
svrooij committed May 2, 2024
1 parent a30ac9c commit bf06212
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Svrooij.WinTuner.CmdLets/Commands/DeployWtMsStoreApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Svrooij.WinTuner.CmdLets.Commands;
[Cmdlet(VerbsLifecycle.Deploy, "WtMsStoreApp", DefaultParameterSetName = nameof(PackageId))]
[OutputType(typeof(GraphModels.WinGetApp))]
public class DeployWtMsStoreApp : BaseIntuneCmdlet
{
{
/// <summary>
/// <para type="description">The package id to upload to Intune.</para>
/// </summary>
Expand Down Expand Up @@ -82,12 +82,12 @@ public override async Task ProcessRecordAsync(CancellationToken cancellationToke

logger!.LogInformation("Created MSStore app {PackageId} with id {appId}", PackageId, app.Id);

Check warning on line 83 in src/Svrooij.WinTuner.CmdLets/Commands/DeployWtMsStoreApp.cs

View workflow job for this annotation

GitHub Actions / 🛠️ Build and Test

Dereference of a possibly null reference. [/home/runner/work/WingetIntune/WingetIntune/src/Svrooij.WinTuner.CmdLets/Svrooij.WinTuner.CmdLets.csproj]

Check warning on line 83 in src/Svrooij.WinTuner.CmdLets/Commands/DeployWtMsStoreApp.cs

View workflow job for this annotation

GitHub Actions / 🛠️ Build and Test

Dereference of a possibly null reference. [/home/runner/work/WingetIntune/WingetIntune/src/Svrooij.WinTuner.CmdLets/Svrooij.WinTuner.CmdLets.csproj]
WriteObject(app);
}
}
catch (Exception ex)
{
logger!.LogError(ex, "Error creating MSStore app {PackageId}", PackageId);
}


}
}
5 changes: 3 additions & 2 deletions src/WingetIntune/Graph/GraphStoreAppUploader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public GraphStoreAppUploader(ILogger<GraphStoreAppUploader> logger, IFileManager
if (uriPart is null)
{
logger.LogWarning("No image found for {packageId}", packageId);
} else
}
else
{
var imageUrl = $"http:{uriPart}";
await fileManager.DownloadFileAsync(imageUrl, imagePath, overrideFile: true, cancellationToken: cancellationToken);
Expand All @@ -66,7 +67,7 @@ public GraphStoreAppUploader(ILogger<GraphStoreAppUploader> logger, IFileManager
Value = await fileManager.ReadAllBytesAsync(imagePath, cancellationToken)
};
}

}
catch (Exception ex)
{
Expand Down

0 comments on commit bf06212

Please sign in to comment.