Ruby

Ruby

Made by DeepSource

Redundant call to base class' constructor CS-R1099

Anti-pattern
Major

The base keyword allows you to call the base class' constructor. However, if the base class' constructor does not take any arguments, any explicit calls via the base keyword is redundant. Consider dropping such redundant constructor calls.

Bad Practice

public Child() : base()
{
    // ...
}

Recommended

public Child()
{
    // ...
}