Code duplicated


I don’t know why this code is duplicated.

Hi,

Welcome to the community!

Duplication detection ignores the values of string literals.

 
HTH,
Ann

hi, so i must define a variable as ‘string’ ?

Hi,

This isn’t about variable definition. I’m just telling you why these things show up as duplicates of each other.

It’s possible you want to configure a duplication exclusion.

 
HTH,
Ann