remove redundant code in gsession

This commit is contained in:
chikaku
2020-01-21 14:55:08 +08:00
parent 8f2dcf21ff
commit d9f4e6eaa6

View File

@ -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]))