We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdb6215 commit ed663c3Copy full SHA for ed663c3
cmd/commitstat/main.go
@@ -27,12 +27,6 @@ var rootCmd = &cobra.Command{
27
if len(args) != 1 {
28
return errors.New("arg should be a path or \"-\" to read from stdin")
29
}
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
36
return nil
37
},
38
Run: func(cmd *cobra.Command, args []string) {
0 commit comments