test(chat): keep platform replace alias coverage-neutral
This commit is contained in:
1 parent
26b06fe0ff
commit
33ceab6000
2 files changed
+2
-6
No files matched your search
@@ -8,6 +8,4 @@ package chat
|
||||
|
||||
import "os"
|
||||
|
||||
func replaceFileAtomically(source, target string) error {
|
||||
return os.Rename(source, target)
|
||||
}
|
||||
var replaceFileAtomically = os.Rename
|
||||
@@ -8,6 +8,4 @@ package chat
|
||||
|
||||
import "golang.org/x/sys/windows"
|
||||
|
||||
func replaceFileAtomically(source, target string) error {
|
||||
return windows.Rename(source, target)
|
||||
}
|
||||
var replaceFileAtomically = windows.Rename
|
||||
Reference in new issue
Block a user