Skip to content

Commit 697831a

Browse files
committed
Convert Reference.IsNote() into a property
1 parent b2fbbfb commit 697831a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LibGit2Sharp.Tests/ReferenceFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ public void CanIdentifyReferenceKind()
837837
path = SandboxBareTestRepo();
838838
using (var repo = new Repository(path))
839839
{
840-
Assert.True(repo.Refs["refs/notes/commits"].IsNote());
840+
Assert.True(repo.Refs["refs/notes/commits"].IsNote);
841841
}
842842
}
843843

LibGit2Sharp/Reference.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ public virtual bool IsTag
114114
/// Determine if the current <see cref="Reference"/> is a note.
115115
/// </summary>
116116
/// <returns>true if the current <see cref="Reference"/> is a note, false otherwise.</returns>
117-
public virtual bool IsNote()
117+
public virtual bool IsNote
118118
{
119-
return CanonicalName.LooksLikeNote();
119+
get { return CanonicalName.LooksLikeNote(); }
120120
}
121121

122122
/// <summary>

0 commit comments

Comments
 (0)