1- using System . Diagnostics . CodeAnalysis ;
1+ using System . ComponentModel ;
2+ using System . Diagnostics . CodeAnalysis ;
23using System . Text . Json . Serialization ;
34using StabilityMatrix . Core . Extensions ;
45using 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" ) ]
1315public 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