- I am a novice when it comes to tslint and typescript.
- Attempting to resolve the error: Unnecessary local variable - stackThird.
- Can someone guide me on how to rectify this issue?
- Despite research, I have not been successful in finding a solution.
The error is related to the following line of code: let stackThird = stackSecond + "/" + stackFirst.stackTags() + "/" + stackFirst.stackFour(); // +" "+Time;
Providing the code snippet below for reference:
- I have also explored this link but unable to make progress
https://github.com/Microsoft/tslint-microsoft-contrib
Error: Unnecessary local variable - stackThird
public stackTags(): any {
let stackFirst = new Date();
let stackSecond = stackFirst.stackFive();
stackSecond++;
let stackThird = stackSecond + "/" + stackFirst.stackTags() + "/" + stackFirst.stackFour(); // +" "+Time;
return stackThird;
}