Skip to content

Commit b1ae6ea

Browse files
committed
refactor: add readonly
1 parent 05a65c5 commit b1ae6ea

File tree

1 file changed

+2
-2
lines changed
  • NF.Tool.ReleaseNoteMaker/NF.Tool.ReleaseNoteMaker.Common/Fragments

1 file changed

+2
-2
lines changed

NF.Tool.ReleaseNoteMaker/NF.Tool.ReleaseNoteMaker.Common/Fragments/FragmentPath.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ private FragmentPath(string baseDirectory, ReleaseNoteConfig config)
3838
}
3939
}
4040

41-
public string Resolve(string section)
41+
public readonly string Resolve(string section)
4242
{
4343
return Path.Combine(_baseDirectory, section);
4444
}
4545

46-
public string GetDirectory(string sectionPath)
46+
public readonly string GetDirectory(string sectionPath)
4747
{
4848
ReleaseNoteSection? sectionOrNull = _config.Sections.Find(x => x.Path == sectionPath)!;
4949
Debug.Assert(sectionOrNull != null, $"sectionOrNull != null | sectionPath: {sectionPath}");

0 commit comments

Comments
 (0)