Skip to content

Commit 76ea395

Browse files
author
Marco De Salvo
committed
Regionize guard code
1 parent 283a4d3 commit 76ea395

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

RDFSharp/Model/RDFGraphIndex.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,12 @@ private void Dispose(bool disposing)
137137
/// </summary>
138138
internal RDFGraphIndex Add(RDFTriple triple)
139139
{
140-
//Triple (Hash)
140+
#region Guards
141141
if (Hashes.ContainsKey(triple.TripleID))
142142
return this;
143+
#endregion
144+
145+
//Triple (Hash)
143146
Hashes.Add(triple.TripleID, new RDFHashedTriple(triple));
144147

145148
//Subject (Register)

0 commit comments

Comments
 (0)