chore: code style (#44)

* some code refactor

* service

* chore: code style

---------

Co-authored-by: naiba <[email protected]>
This commit is contained in:
UUBulb
2024-07-23 23:20:55 +08:00
committed by GitHub
co-authored by naiba
parent a99bf7066b
commit c0288971d8
5 changed files with 57 additions and 67 deletions
+3 -5
View File
@@ -58,9 +58,8 @@ func VersionCheck() bool {
}
return version >= 17763
} else {
return false
}
return false
}
func DownloadDependency() {
@@ -131,10 +130,9 @@ func Start() (Pty, error) {
if !isWin10 {
tty, err := winpty.OpenDefault(path, shellPath)
return &winPTY{tty: tty}, err
} else {
tty, err := conpty.Start(shellPath, conpty.ConPtyWorkDir(path))
return &conPty{tty: tty}, err
}
tty, err := conpty.Start(shellPath, conpty.ConPtyWorkDir(path))
return &conPty{tty: tty}, err
}
func (w *winPTY) Write(p []byte) (n int, err error) {