Skip to content

Commit bb1c716

Browse files
committed
fix unused variable
1 parent b3c9b6d commit bb1c716

File tree

3 files changed

+72
-306
lines changed

3 files changed

+72
-306
lines changed

.DS_Store

0 Bytes
Binary file not shown.

src/extension.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function generateToString(textPorperties: string) {
141141
\t\treturn "{" +\n`;
142142
for (let lineOfCode of classProperties) {
143143
let declaration = lineOfCode.replace('final ', ' ').replace('public ', ' ').replace('private ', ' ').trim().split(" ");
144-
let variableType, variableName, variableNameFirstCapital: string = '';
144+
let variableName, variableNameFirstCapital: string = '';
145145
let skip = false;
146146
if (declaration[0].charAt(0) === '@' || declaration[0].charAt(0) === '/') {
147147
continue;
@@ -157,7 +157,6 @@ export function generateToString(textPorperties: string) {
157157
vscode.window.showWarningMessage(declaration.join(' ') + ' skiped as it\'s unvalid');
158158
skip = true;
159159
} else if (declaration.length === 2) {
160-
variableType = declaration[0];
161160
variableName = declaration[1];
162161
variableNameFirstCapital = capitalizeFirstLetter(declaration[1]);
163162
}

0 commit comments

Comments
 (0)