Skip to content

Commit 8807432

Browse files
committed
remove useless nil check
1 parent 995bb8e commit 8807432

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dashboard/app/models/script.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,13 @@ def self.redis
7878
end
7979

8080
def self.script_cache_from_redis
81-
return unless redis
8281
if marshalled = self.redis['script-cache']
8382
Script.connection # rails doesn't load the mysql libraries unless you ask it to, this confuses Marshal
8483
Marshal.load marshalled
8584
end
8685
end
8786

8887
def self.script_cache_to_redis
89-
return unless redis
9088
redis['script-cache'] = Marshal.dump(script_cache_from_db)
9189
end
9290

0 commit comments

Comments
 (0)