Created
February 14, 2015 12:13
-
-
Save IlyaDonskikh/80d6f58bb1a3b1300e96 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
case query_privacy | |
when 0 | |
feeds = get_global_feed | |
when 1 | |
feeds = get_friends_feed | |
when 2 | |
feeds = get_private_feed | |
else | |
end | |
## Do good, be good | |
feeds = case query_privacy | |
when 0 then get_global_feed | |
when 1 then get_friends_feed | |
when 2 then get_private_feed | |
else nil | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment