@@ -15,7 +15,6 @@ public class Blob : GitObject
1515 {
1616 private readonly ILazy < Int64 > lazySize ;
1717 private readonly ILazy < bool > lazyIsBinary ;
18- private readonly ILazy < bool > lazyIsMissing ;
1918
2019 /// <summary>
2120 /// Needed for mocking purposes.s
@@ -26,9 +25,8 @@ protected Blob()
2625 internal Blob ( Repository repo , ObjectId id )
2726 : base ( repo , id )
2827 {
29- lazySize = GitObjectLazyGroup . Singleton ( repo , id , Proxy . git_blob_rawsize ) ;
30- lazyIsBinary = GitObjectLazyGroup . Singleton ( repo , id , Proxy . git_blob_is_binary ) ;
31- lazyIsMissing = GitObjectLazyGroup . Singleton ( repo , id , handle => handle == null , throwsIfMissing : false ) ;
28+ lazySize = GitObjectLazyGroup . Singleton ( repo , id , Proxy . git_blob_rawsize , throwIfMissing : true ) ;
29+ lazyIsBinary = GitObjectLazyGroup . Singleton ( repo , id , Proxy . git_blob_is_binary , throwIfMissing : true ) ;
3230 }
3331
3432 /// <summary>
@@ -47,12 +45,6 @@ internal Blob(Repository repo, ObjectId id)
4745 /// <exception cref="NotFoundException">Throws if blob is missing</exception>
4846 public virtual bool IsBinary => lazyIsBinary . Value ;
4947
50-
51- /// <summary>
52- /// Determine if the blob content is missing ( with partially cloned repositories)
53- /// </summary>
54- public virtual bool IsMissing => lazyIsMissing . Value ;
55-
5648 /// <summary>
5749 /// Gets the blob content in a <see cref="Stream"/>.
5850 /// </summary>
0 commit comments