fix negation

This commit is contained in:
Sven Fuchs 2012-10-10 18:51:05 +02:00
parent e997ac7f6a
commit ecdf0b9c3a
2 changed files with 5 additions and 8 deletions

View File

@ -43,7 +43,7 @@ GIT
GIT GIT
remote: git://github.com/travis-ci/travis-api.git remote: git://github.com/travis-ci/travis-api.git
revision: 8abd6fa15076c6403477bda39f8d78ebe10c504d revision: d17439513f159633f640546d276327f7b63c1030
specs: specs:
travis-api (0.0.1) travis-api (0.0.1)
backports (~> 2.5) backports (~> 2.5)
@ -61,7 +61,7 @@ GIT
GIT GIT
remote: git://github.com/travis-ci/travis-core.git remote: git://github.com/travis-ci/travis-core.git
revision: 46fcb22ff1517d73e7a6425a7fc1f876ef771281 revision: 71ee475483af3db1f3073f65e474284565a24f5b
branch: sf-travis-api branch: sf-travis-api
specs: specs:
travis-core (0.0.1) travis-core (0.0.1)

View File

@ -11,17 +11,14 @@ class Travis::Web::App
def call(env) def call(env)
path = env['PATH_INFO'] path = env['PATH_INFO']
if !asset?(path) env = map_env(env, config.version) if asset?(path)
app.call(map_env(env, config.version))
else
app.call(env) app.call(env)
end end
end
private private
def asset?(path) def asset?(path)
path !~ Travis::Web::App::ASSET_DIRS path =~ Travis::Web::App::ASSET_DIRS
end end
end end
end end