Created
August 22, 2017 09:03
-
-
Save sys1yagi/afa4d7fad5a386067c980491b652eca1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun shouldOpenShop(shopId: Long): Boolean { | |
if( shopId <= 0L ){ | |
return false | |
} | |
if( this.shop == null ) { | |
return false | |
} | |
if( this.shop.id == shopId ) { // これを return this.shop.id == shopId にしろって言われる | |
return false | |
} | |
return true | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment