Skip to content

Commit ff8bcdd

Browse files
committed
fix: early exit if no changes
1 parent 520fdd5 commit ff8bcdd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func main() { //nolint:gocyclo
9090

9191
if slices.Equal(originData, editedData) {
9292
fmt.Println("No changes detected, exiting.")
93+
return
9394
}
9495

9596
dmp := diffmatchpatch.New()

0 commit comments

Comments
 (0)