"WARNING - Codice sospetto. Il risultato dell'operatore 'getprop' non viene utilizzato."Cosa significa "ATTENZIONE - Codice sospetto. Il risultato dell'operatore 'getprop' non viene utilizzato." significare?
Sto vedendo questo per due righe nel mio codice JavaScript quando uso il compilatore di chiusura. Sono typedef tra altri typedef che non riportano problemi. Cosa dovrei cercare?
EDIT
codice interessato:
/**
* @typedef {{playerId: number, playerName: string, baseScores: Array.<number>, bonusScores: Array.<number>,
* teamScoreAdjustments: Array.<number>}}
*/
wias.GameTableTeamMember;
/**
* @typedef {{id: number, teamMembers: Array<wias.GameTableTeamMember>, teamName: string}}
*/
wias.GameTableTeam;
/**
* @typedef {{id: number, availableRound: boolean, bonusScoring: boolean, complete: boolean, gameLength: number,
* gameType: string, lastPlayed: string, numberOfRounds: number, teams: Array.<wias.GameTableTeam>, winners:
* Array.<string>}}
*/
wias.GameTable;
Attenzione:
wias.js:77: WARNING - Suspicious code. The result of the 'getprop' operator is not being used.
wias.GameTableTeam;
^
Perché un avvertimento lì e non altrove?
Non sono sicuro di quello che i mezzi di avvertimento, ma sono curioso per vedere il codice reale di cui sta parlando ... – nnnnnn