mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-09-12 15:56:07 +00:00
There is no need in type conversion here
This commit is contained in:
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")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user