Chore/fix lint issues (#27704)

* Chore: Fix linting issues

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-09-22 16:22:19 +02:00
committed by GitHub
parent ffc11cb63c
commit a5d9196a53
70 changed files with 274 additions and 276 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ func (b *BasicDiff) Basic(lines []*JSONLine) []*BasicBlock {
b.Block.Changes = append(b.Block.Changes, b.Change)
default:
//ok
// ok
}
// otherwise, we're dealing with a change at a deeper level. We
+2 -2
View File
@@ -243,7 +243,7 @@ func (f *JSONFormatter) processItem(value interface{}, deltas []diff.Delta, posi
case *diff.Object:
switch value.(type) {
case map[string]interface{}:
//ok
// ok
default:
return errors.New("Type mismatch")
}
@@ -268,7 +268,7 @@ func (f *JSONFormatter) processItem(value interface{}, deltas []diff.Delta, posi
case *diff.Array:
switch value.(type) {
case []interface{}:
//ok
// ok
default:
return errors.New("Type mismatch")
}