mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Introduce staticcheck for stricter builds (#7035)
This commit is contained in:
committed by
Nitish Tiwari
parent
4ba77a916d
commit
df35d7db9d
@@ -62,17 +62,16 @@ func FormatJSONSyntaxError(data io.Reader, offset int64) (highlight string) {
|
||||
if readBytes > offset {
|
||||
break
|
||||
}
|
||||
switch b {
|
||||
case '\n':
|
||||
if b == '\n' {
|
||||
readLine.Reset()
|
||||
errLine++
|
||||
case '\t':
|
||||
continue
|
||||
} else if b == '\t' {
|
||||
readLine.WriteByte(' ')
|
||||
case '\r':
|
||||
} else if b == '\r' {
|
||||
break
|
||||
default:
|
||||
readLine.WriteByte(b)
|
||||
}
|
||||
readLine.WriteByte(b)
|
||||
}
|
||||
|
||||
lineLen := readLine.Len()
|
||||
|
||||
Reference in New Issue
Block a user