mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
fix: improve code format (#2665)
* feat: replace io/ioutils pacakage with io/os package * fix: add missing error handling
This commit is contained in:
@ -14,10 +14,10 @@
|
||||
|
||||
package util
|
||||
|
||||
import "io/ioutil"
|
||||
import "os"
|
||||
|
||||
func GetUploadXlsxPath(fileId string) string {
|
||||
file, err := ioutil.TempFile("", fileId)
|
||||
file, err := os.CreateTemp("", fileId)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user