Skip to content

Commit

Permalink
use a more idiomatic style
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmanzo authored and asdine committed Sep 7, 2020
1 parent 964b984 commit 349ac89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/genji/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ func stdinFromTerminal() bool {
fi, _ := os.Stdin.Stat()
if (fi.Mode() & os.ModeCharDevice) == 0 {
return false // data is from pipe
} else {
return true // data is from terminal
}
return true // data is from terminal
}

// Run a shell.
Expand Down

0 comments on commit 349ac89

Please sign in to comment.