quick lint fix
Dependencies
- [2]
ZDZDASRTcomplexity over 12 now gone, but have some lint fails - [3]
KZKLAINJrun out of space on nest, cleaned out - [4]
QFPEKXL5ck 6 - [5]
GE3VNRXLck 2 - [6]
3DVPQOKBbig tidy up of tools/
Change contents
- replacement in tools/calls/calls_from_common.go at line 102
return res, fmt.Errorf("Error processing %s: %v", file, err)return res, fmt.Errorf("error processing %s: %v", file, err) - replacement in tools/calls/calls_from_common.go at line 115
return res, fmt.Errorf("Failed to delete %s: %v", file, err)return res, fmt.Errorf("failed to delete %s: %v", file, err) - edit in cmd/common.go at line 7
"strconv" - edit in cmd/common.go at line 72[3.2822]→[3.2822:3176](∅→∅),[3.3176]→[3.5212:5228](∅→∅),[3.5212]→[3.5212:5228](∅→∅),[3.5228]→[3.3177:3306](∅→∅),[3.3306]→[3.5228:5230](∅→∅),[3.5228]→[3.5228:5230](∅→∅)
// mustIntValue returns the integer value for a flag, validating range [lo,hi].// Exits on missing value, parse error, or out-of-range.func mustIntValue(args []string, i *int, flag string, lo, hi int) int {val := mustValue(args, i, flag)v, err := strconv.Atoi(val)if err != nil {fmt.Fprintf(os.Stderr, "Error: %s must be an integer\n", flag)os.Exit(1)}if v < lo || v > hi {fmt.Fprintf(os.Stderr, "Error: %s must be between %d and %d\n", flag, lo, hi)os.Exit(1)}return v}