Skip to content

Commit

Permalink
remove CheckErr()
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Jun 14, 2021
1 parent dd5f3fa commit b8490fe
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package util
import (
"crypto/md5"
"encoding/hex"
"fmt"
"io/ioutil"
"log"
"net/url"
"os"
"time"
Expand All @@ -18,15 +16,6 @@ func Min(x, y int) int {
}
return y
}
func CheckErr(err error) bool {
if err != nil {
log.Println(err)
fmt.Println("ERROR")
panic(err)
return false
}
return true
}
func PathExists(path string) bool {
_, err := os.Stat(path)
if err == nil {
Expand Down

0 comments on commit b8490fe

Please sign in to comment.