1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-24 13:48:49 +08:00

Merge a84f6b20a16e058e2b7d3dc6740f29b9e37720fb into 4a19dee361071c18db7a9b9cb724dc52de86ae12

This commit is contained in:
guoguangwu 2024-11-08 10:52:20 -05:00 committed by GitHub
commit 9f661e14ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,6 +149,7 @@ func (fs *MockFilesystem) stat(name string) (os.FileInfo, error) {
log.Println("A")
return nil, err
}
defer tmpFile.Close()
defer os.Remove(tmpFile.Name())
return os.Stat(tmpFile.Name())