mirror of
https://github.com/zhigang1992/synx.git
synced 2026-01-12 22:52:53 +08:00
[Bug Fix] When hierarchy_path is nil (aka, the abstract_obejct is the main group) don't try to index on it.
This commit is contained in:
@@ -12,8 +12,12 @@ module Xcodeproj
|
||||
end
|
||||
|
||||
def work_pathname
|
||||
# hierarchy path has a leading '/' that will break path concatenation
|
||||
@work_pathname ||= project.work_root_pathname + hierarchy_path[1..-1]
|
||||
@work_pathname ||= if hierarchy_path
|
||||
# hierarchy path has a leading '/' that will break path concatenation
|
||||
project.work_root_pathname + hierarchy_path[1..-1]
|
||||
else
|
||||
project.work_root_pathname
|
||||
end
|
||||
end
|
||||
|
||||
def ensure_internal_consistency(group)
|
||||
|
||||
Reference in New Issue
Block a user