Merge "aidegen: Fix bug of generating module dependency information"

This commit is contained in:
Treehugger Robot 2018-10-12 05:05:34 +00:00 committed by Gerrit Code Review
commit a4b0422fc2

View file

@ -1757,7 +1757,7 @@ func (j *Import) IDECustomizedModuleName() string {
// solution to get the Import name.
name := j.Name()
if strings.HasPrefix(name, removedPrefix) {
name = strings.Trim(name, removedPrefix)
name = strings.TrimPrefix(name, removedPrefix)
}
return name
}