chore: use bytes.Equal instead of bytes.Compare
parent
02501123af
commit
5209660b88
|
@ -174,7 +174,7 @@ func (ft *Formatter) formatFile(path string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if bytes.Compare(pathBytes, formattedBytes) == 0 {
|
if bytes.Equal(pathBytes, formattedBytes) {
|
||||||
return ErrAlreadyFormatted
|
return ErrAlreadyFormatted
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue