The author (most likely) places the block of code in the if statement so that they can easily delete it if necessary, without having to comment on it (or delete it). Like if (true) or if (false), you just need to change one value and skip this code.
When viewing the code, developers should remove these types of statements as soon as they complete their entire source code so as not to confuse others.
source share