Skip to content

Commit 33295d7

Browse files
committed
Add localizable false
1 parent b0eac30 commit 33295d7

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

StabilityMatrix.Core/Models/HybridModelFile.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Diagnostics.CodeAnalysis;
1+
using System.ComponentModel;
2+
using System.Diagnostics.CodeAnalysis;
23
using System.Text.Json.Serialization;
34
using StabilityMatrix.Core.Extensions;
45
using StabilityMatrix.Core.Helper;
@@ -9,6 +10,7 @@ namespace StabilityMatrix.Core.Models;
910
/// <summary>
1011
/// Model file union that may be remote or local.
1112
/// </summary>
13+
[Localizable(false)]
1214
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
1315
public record HybridModelFile : ISearchText, IDownloadableResource
1416
{
@@ -46,15 +48,14 @@ public record HybridModelFile : ISearchText, IDownloadableResource
4648
{
4749
HybridModelType.Local => Local!.RelativePathFromSharedFolder,
4850
HybridModelType.Remote => RemoteName!,
49-
HybridModelType.Downloadable
50-
=> DownloadableResource!.Value.RelativeDirectory == null
51-
? DownloadableResource!.Value.FileName
52-
: Path.Combine(
53-
DownloadableResource!.Value.RelativeDirectory,
54-
DownloadableResource!.Value.FileName
55-
),
51+
HybridModelType.Downloadable => DownloadableResource!.Value.RelativeDirectory == null
52+
? DownloadableResource!.Value.FileName
53+
: Path.Combine(
54+
DownloadableResource!.Value.RelativeDirectory,
55+
DownloadableResource!.Value.FileName
56+
),
5657
HybridModelType.None => throw new InvalidOperationException(),
57-
_ => throw new ArgumentOutOfRangeException()
58+
_ => throw new ArgumentOutOfRangeException(),
5859
};
5960

6061
[JsonIgnore]

0 commit comments

Comments
 (0)