Pattern: Use of no-op primitive operation
Issue: -
Some operations on primitive types are idempotent and can be removed.
Example of incorrect code:
doubleValue.toDouble();
intValue.toInt();
intValue.round();
intValue.ceil();
intValue.floor();
intValue.truncate();
string.toString();
string = 'hello\n'
'world\n'
''; // useless empty string