From d9f4e6eaa63bad64291f89eae4618609c1125a83 Mon Sep 17 00:00:00 2001 From: chikaku Date: Tue, 21 Jan 2020 14:55:08 +0800 Subject: [PATCH] remove redundant code in gsession --- os/gsession/gsession_storage_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/gsession/gsession_storage_file.go b/os/gsession/gsession_storage_file.go index 5f30a917c..f1c93b873 100644 --- a/os/gsession/gsession_storage_file.go +++ b/os/gsession/gsession_storage_file.go @@ -54,7 +54,7 @@ func NewStorageFile(path ...string) *StorageFile { if len(path) > 0 && path[0] != "" { storagePath, _ = gfile.Search(path[0]) if storagePath == "" { - panic(fmt.Sprintf(fmt.Sprintf("'%s' does not exist", path[0]))) + panic(fmt.Sprintf("'%s' does not exist", path[0])) } if !gfile.IsWritable(storagePath) { panic(fmt.Sprintf("'%s' is not writable", path[0]))