Pattern: Unnecessary braces in string interpolation
Issue: -
If you're just interpolating a simple identifier, and it's not immediately
followed by more alphanumeric text, the {}
can and should be omitted.
Example of correct code:
print("Hi, $name!");
Example of incorrect code:
print("Hi, ${name}!");