mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 11:27:17 +08:00
fix: lint
This commit is contained in:
@@ -122,10 +122,11 @@ func (s *SystemHelperTestSuite) TestChown() {
|
||||
|
||||
func (s *SystemHelperTestSuite) TestExists() {
|
||||
filePath, _ := TempFile("testfile")
|
||||
defer Remove(filePath.Name())
|
||||
|
||||
s.True(Exists(filePath.Name()))
|
||||
s.False(Exists("123"))
|
||||
s.Nil(filePath.Close())
|
||||
s.Nil(Remove(filePath.Name()))
|
||||
}
|
||||
|
||||
func (s *SystemHelperTestSuite) TestEmpty() {
|
||||
|
||||
Reference in New Issue
Block a user