Skip to content

Commit

Permalink
log.Fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
azimut committed Sep 15, 2021
1 parent 26b2a70 commit 0d7db5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/hackerview/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"flag"
"fmt"
"io"
"log"
"os"
"time"

Expand Down Expand Up @@ -54,7 +55,6 @@ func run(args []string, stdout io.Writer) error {
func main() {
err := run(os.Args, os.Stdout)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
log.Fatal(err)
}
}
4 changes: 2 additions & 2 deletions cmd/twitterview/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"flag"
"fmt"
"io"
"log"
"os"
"time"

Expand Down Expand Up @@ -54,7 +55,6 @@ func run(args []string, stdout io.Writer) error {
func main() {
err := run(os.Args, os.Stdout)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
log.Fatal(err)
}
}

0 comments on commit 0d7db5f

Please sign in to comment.