Browse Source

Parse atto-safesign files more strictly

xno v1.3.0-delta
codesoap 9 months ago
parent
commit
8fb4572e0b
  1. 4
      cmd/atto-safesign/util.go

4
cmd/atto-safesign/util.go

@ -66,10 +66,6 @@ func getBlocksFromFile() ([]atto.Block, error) { @@ -66,10 +66,6 @@ func getBlocksFromFile() ([]atto.Block, error) {
} else if err != nil {
return nil, err
}
if len(line) < 2 || line[0] == '#' {
// Skip empty and comment lines
continue
}
var block atto.Block
if err = json.Unmarshal(line, &block); err != nil {
return nil, err

Loading…
Cancel
Save