chore: use bytes.Equal instead of bytes.Compare

main
sudo pacman -Syu 2023-01-17 11:49:36 +07:00 committed by sudo pacman -Syu
parent 02501123af
commit 5209660b88
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ func (ft *Formatter) formatFile(path string) error {
return err
}
if bytes.Compare(pathBytes, formattedBytes) == 0 {
if bytes.Equal(pathBytes, formattedBytes) {
return ErrAlreadyFormatted
}