Last active
December 16, 2015 19:58
-
-
Save tyoshikawa1106/5488607 to your computer and use it in GitHub Desktop.
? 判定文 Before
This file contains hidden or 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
private Account getAccount() { | |
List<Account> accounts = [ | |
select | |
Id | |
,Name | |
from | |
Account | |
limit 1 | |
]; | |
if (accounts.isEmpty() == true) { | |
return accounts[0]; | |
} | |
return new Account(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment