Don't mix hex literal letter digits casing
Replace len(path)
== 0 with path == ""
File creation in shared tmp
directory without using ioutil.Tempfile
This result of append is never used, except maybe in other appends
Can combine the chain of append
into one
@@ -82,9 +82,7 @@ func (cm constantsMap) Get(typ godwarf.Type) *constantType {
|
|
82
82
|
ctyp.initialized = true
|
83
83
|
sort.Sort(constantValuesByValue(ctyp.values))
|
84
84
|
for i := range ctyp.values {
|
85
|
-
if strings.HasPrefix(ctyp.values[i].name, typepkg) {
|
86
|
-
|
85
|
+
ctyp.values[i].name = strings.TrimPrefix(ctyp.values[i].name, typepkg)
|
87
|
-
}
|
88
86
|
if popcnt(uint64(ctyp.values[i].value)) == 1 {
|
89
87
|
ctyp.values[i].singleBit = true
|
90
88
|
}
|