There is no need in type conversion here
This commit is contained in:
parent
94706e8468
commit
163fb4ef35
2
flag.go
2
flag.go
@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user