Golint fixes

This commit is contained in:
James Shubin
2016-03-09 17:22:02 -05:00
parent e60dda5027
commit 23647445d7
4 changed files with 100 additions and 102 deletions

View File

@@ -403,7 +403,7 @@ func (obj *FileResAutoEdges) Next() []ResUUID {
return nil
}
value := obj.data[obj.pointer]
obj.pointer += 1
obj.pointer++
return []ResUUID{value} // we return one, even though api supports N
}
@@ -432,7 +432,7 @@ func (obj *FileRes) AutoEdges() AutoEdge {
values := PathSplitFullReversed(obj.GetPath()) // build it
_, values = values[0], values[1:] // get rid of first value which is me!
for _, x := range values {
var reversed bool = true // cheat by passing a pointer
var reversed = true // cheat by passing a pointer
data = append(data, &FileUUID{
BaseUUID: BaseUUID{
name: obj.GetName(),