Merge pull request #1336 from filecoin-project/vet/some-go-vet-fixes

some go vet fixes
This commit is contained in:
Whyrusleeping
2020-03-06 00:11:13 -08:00
committed by GitHub
8 changed files with 17 additions and 19 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ func (a *SyncAPI) SyncState(ctx context.Context) (*api.SyncState, error) {
out := &api.SyncState{}
for _, ss := range states {
for i := range states {
ss := &states[i]
out.ActiveSyncs = append(out.ActiveSyncs, api.ActiveSync{
Base: ss.Base,
Target: ss.Target,