If condition can be replaced with guard statement if value is non-nil

后端 未结 0 978
萌比男神i
萌比男神i 2020-12-11 11:48

I have a method called isClassroomFull() which returns either true or false. I have implemented as follows.

if (isClassroomFulll()) {
  navigatio         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题