Applied rubocop cop 'Lint/UnreachableCode'.
This commit is contained in:
parent
cd800495d8
commit
e1a5a2f94b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
#36 Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
||||||
# rubocop:disable ClassAndModuleChildren
|
# rubocop:disable ClassAndModuleChildren
|
||||||
module ApplicationModel::Assets
|
module ApplicationModel::Assets
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ returns
|
||||||
return data if !self['created_by_id'] && !self['updated_by_id']
|
return data if !self['created_by_id'] && !self['updated_by_id']
|
||||||
%w(created_by_id updated_by_id).each {|local_user_id|
|
%w(created_by_id updated_by_id).each {|local_user_id|
|
||||||
next if !self[ local_user_id ]
|
next if !self[ local_user_id ]
|
||||||
next data[ User.to_app_model ] && data[ User.to_app_model ][ self[ local_user_id ] ]
|
next if data[ User.to_app_model ] && data[ User.to_app_model ][ self[ local_user_id ] ]
|
||||||
user = User.lookup( id: self[ local_user_id ] )
|
user = User.lookup( id: self[ local_user_id ] )
|
||||||
data = user.assets( data )
|
data = user.assets( data )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue