Skip to content

Commit 94d5cac

Browse files
committed
Fixed spacing
1 parent 8f2a0b4 commit 94d5cac

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/LinkDotNet.Blog.Web/Shared/ShortBlogPost.razor

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,16 @@
5454
readTime = (int)Math.Ceiling(readTimeInPrecision / 60);
5555
}
5656

57-
private int GetAllOccurrences(string text, string lookup)
58-
{
59-
var currentPosition = -1;
60-
var count = 0;
61-
62-
while ((currentPosition = text.IndexOf(lookup, currentPosition + 1, StringComparison.Ordinal)) != -1)
57+
private int GetAllOccurrences(string text, string lookup)
6358
{
64-
count++;
65-
}
59+
var currentPosition = -1;
60+
var count = 0;
6661

67-
return count;
68-
}
62+
while ((currentPosition = text.IndexOf(lookup, currentPosition + 1, StringComparison.Ordinal)) != -1)
63+
{
64+
count++;
65+
}
6966

67+
return count;
68+
}
7069
}

0 commit comments

Comments
 (0)