mirror of
https://github.com/pikami/tiktok-dl.git
synced 2025-12-22 10:19:49 +00:00
TTDL-7 Added flag; Code clean up
This commit is contained in:
12
utils/checkErr/checkErr.go
Normal file
12
utils/checkErr/checkErr.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"log"
|
||||
)
|
||||
|
||||
// CheckErr - Checks if error and log
|
||||
func CheckErr(err error) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user