Skip to content

Commit

Permalink
chore: remove redundant base calls (#10270)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Oct 16, 2024
1 parent 970ba96 commit ebee6e2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Docfx.App/Config/ListWithStringFallback.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal class ListWithStringFallback : List<string>
/// <summary>
/// Initializes a new instance of the <see cref="ListWithStringFallback"/> class.
/// </summary>
public ListWithStringFallback() : base()
public ListWithStringFallback()
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Build/FileMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed class FileMetadata : Dictionary<string, ImmutableArray<FileMetadat
{
public string BaseDir { get; }

public FileMetadata(string baseDir) : base()
public FileMetadata(string baseDir)
{
BaseDir = baseDir;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Common/FileItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Docfx;
public class FileItems : List<string>
{
private static readonly IEnumerable<string> Empty = new List<string>();
public FileItems(string file) : base()
public FileItems(string file)
{
Add(file);
}
Expand Down
3 changes: 2 additions & 1 deletion src/Docfx.Common/FileMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public IReadOnlyList<FileMappingItem> Items
/// <summary>
/// Initializes a new instance of the <see cref="FileMapping"/> class.
/// </summary>
public FileMapping() : base() { }
public FileMapping()
{ }

/// <summary>
/// Initializes a new instance of the <see cref="FileMapping"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TripleColonInline : Inline, ITripleColon
public string Body { get; set; }

public TripleColonInline()
: base() { }
{ }

public bool Closed { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public class SitemapGeneratorTests : TestBase
private readonly ITestOutputHelper _output;

public SitemapGeneratorTests(ITestOutputHelper output)
: base()
{
_output = output;
}
Expand Down
3 changes: 2 additions & 1 deletion test/docfx.Tests/JsonConverterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public void TestFileMappingItemOutputShouldContainSrcOnly()

internal class SkipEmptyOrNullContractResolver : DefaultContractResolver
{
public SkipEmptyOrNullContractResolver(bool shareCache = false) : base() { }
public SkipEmptyOrNullContractResolver(bool shareCache = false)
{ }

protected override JsonProperty CreateProperty(MemberInfo member,
MemberSerialization memberSerialization)
Expand Down

0 comments on commit ebee6e2

Please sign in to comment.