Skip to content

Instantly share code, notes, and snippets.

@sys1yagi
Created August 22, 2017 09:03
Show Gist options
  • Save sys1yagi/afa4d7fad5a386067c980491b652eca1 to your computer and use it in GitHub Desktop.
Save sys1yagi/afa4d7fad5a386067c980491b652eca1 to your computer and use it in GitHub Desktop.
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