Is there any reason for using if(1 || !Foo())?

前端 未结 0 1543
不知归路
不知归路 2021-02-11 12:35

I read some legacy code:

if ( 1 || !Foo() )

Is there any seen reason why not to write:

if ( !Foo() )
相关标签:
回答
  • 消灭零回复
提交回复
热议问题