Skip to content

Commit ed663c3

Browse files
committed
Remove stdin check because it doesn't work in CI
1 parent fdb6215 commit ed663c3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/commitstat/main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ var rootCmd = &cobra.Command{
2727
if len(args) != 1 {
2828
return errors.New("arg should be a path or \"-\" to read from stdin")
2929
}
30-
31-
stat, _ := os.Stdin.Stat()
32-
if args[0] != "-" && (stat.Mode()&os.ModeCharDevice) == 0 {
33-
return errors.New("cannot read from a file and stdin at the same time")
34-
}
35-
3630
return nil
3731
},
3832
Run: func(cmd *cobra.Command, args []string) {

0 commit comments

Comments
 (0)