Skip to content

Commit

Permalink
Get rid of ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Nov 28, 2023
1 parent b0ec50e commit 8719d31
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/lhdiff/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
"io/ioutil"
"os"

"github.com/oselvar/lhdiff"
Expand All @@ -14,8 +13,8 @@ func main() {
flag.Parse()
leftFile := flag.Arg(0)
rightFile := flag.Arg(1)
left, _ := ioutil.ReadFile(leftFile)
right, _ := ioutil.ReadFile(rightFile)
left, _ := os.ReadFile(leftFile)
right, _ := os.ReadFile(rightFile)
mappings, err := lhdiff.Lhdiff(string(left), string(right), 4, !*compact)

if err != nil {
Expand Down

0 comments on commit 8719d31

Please sign in to comment.