Removes parentheses around if conditions

This commit is contained in:
Nbernot 2017-07-11 13:33:47 +02:00 committed by GitHub
parent d917cf3340
commit d746ae2549

View file

@ -380,7 +380,7 @@ class Asset < ActiveRecord::Base
action = get_action(file_ext, action)
if !action.nil?
action_url = action.urlsrc
if (ENV['WOPI_BUSINESS_USERS'] && ENV['WOPI_BUSINESS_USERS']=='true' )
if ENV['WOPI_BUSINESS_USERS'] && ENV['WOPI_BUSINESS_USERS']=='true'
action_url = action_url.gsub(/<IsLicensedUser=BUSINESS_USER&>/,
'IsLicensedUser=1&')
action_url = action_url.gsub(/<IsLicensedUser=BUSINESS_USER>/,