There is no need in type conversion here

This commit is contained in:
hugmouse 2021-10-29 17:03:00 +08:00 committed by handlerug
parent 94706e8468
commit 163fb4ef35

View File

@ -74,7 +74,7 @@ func createAdminCommand(name string) {
user.InitUserDatabase() user.InitUserDatabase()
log.SetOutput(wr) log.SetOutput(wr)
handle := int(syscall.Stdin) handle := syscall.Stdin
if !term.IsTerminal(handle) { if !term.IsTerminal(handle) {
log.Fatal("error: not a terminal") log.Fatal("error: not a terminal")
} }