mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 14:11:16 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -13,7 +13,7 @@ module Middleware
|
||||
# config.middleware.insert 0, Middleware::TurboDev
|
||||
#
|
||||
class TurboDev
|
||||
def initialize(app, settings={})
|
||||
def initialize(app, settings = {})
|
||||
@app = app
|
||||
end
|
||||
|
||||
@ -27,7 +27,7 @@ module Middleware
|
||||
etag = etag.gsub "\"", ""
|
||||
asset = Rails.application.assets.find_asset(name)
|
||||
if asset && asset.digest == etag
|
||||
return [304,{},[]]
|
||||
return [304, {}, []]
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user