Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Revert "AO3-4466 Reduce the one call to skins per page" #2510

Merged
merged 1 commit into from Aug 14, 2016

Conversation

Projects
None yet
2 participants
Contributor

zz9pzza commented Aug 14, 2016

@@ -53,8 +51,7 @@ def self.guest_downloading_off?
self.first ? self.first.guest_downloading_off? : false
end
def self.default_skin
- default_skin = Rails.cache.fetch(default_skin_cache_key) { Skin.default }
- self.first ? (self.first.default_skin_id ? self.first.default_skin : default_skin) : default_skin
+ self.first ? (self.first.default_skin_id ? self.first.default_skin : Skin.default) : Skin.default
@houndci-bot

houndci-bot Aug 14, 2016

Ternary operators must not be nested. Prefer if/else constructs instead.
Redundant self detected.

@zz9pzza zz9pzza merged commit c2a0e27 into master Aug 14, 2016

1 of 4 checks passed

continuous-integration/codeship Build in progress
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/travis-ci/push The Travis CI build is in progress
Details
hound 2 violations found.

@zz9pzza zz9pzza deleted the revert-2332-AO3-4466 branch Aug 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment