If a class method does not use this, it can sometimes be made into a static function. If you do convert the method into a static function, instances of the class that call that particular method have to be converted to a static call as well (MyClass.callStaticMethod())
Occurrences
There are 12 occurrences of this issue in the repository.
Description
If a class method does not use
this
, it can sometimes be made into a static function. If you do convert the method into a static function, instances of the class that call that particular method have to be converted to a static call as well(MyClass.callStaticMethod())
Occurrences
There are 12 occurrences of this issue in the repository.
See all occurrences on DeepSource → app.deepsource.com/gh/SupportVol/BackEnd/issue/JS-0105/occurrences/