Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Feb 19, 2023
1 parent 1c55846 commit 7fe8a05
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions block/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package block_test
import (
"database/sql"
"fmt"
"io"
"os"
"testing"

Expand All @@ -25,26 +24,3 @@ func getPostgresDB(t *testing.T) (*sql.DB, error) {

return sql.Open("postgres", connStr)
}

func copyFileContents(src, dst string) (err error) {
in, err := os.Open(src)
if err != nil {
return
}
defer in.Close()
out, err := os.Create(dst)
if err != nil {
return
}
defer func() {
cerr := out.Close()
if err == nil {
err = cerr
}
}()
if _, err = io.Copy(out, in); err != nil {
return
}
err = out.Sync()
return
}

0 comments on commit 7fe8a05

Please sign in to comment.