Code optimized (#493)

This commit is contained in:
kingxt
2021-02-20 19:50:03 +08:00
committed by GitHub
parent 059027bc9d
commit f98c9246b2
28 changed files with 472 additions and 372 deletions

View File

@@ -10,9 +10,7 @@ import (
"github.com/logrusorgru/aurora"
)
const (
NL = "\n"
)
const NL = "\n"
func CreateIfNotExist(file string) (*os.File, error) {
_, err := os.Stat(file)