From 14561cba9fb11d982cbc19a44cc95257700a2b3e Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 3 Dec 2019 16:44:37 -0800 Subject: [PATCH] Don't print an error if file doesn't exist --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index e186ebe7d..6292fe004 100644 --- a/main.go +++ b/main.go @@ -32,8 +32,7 @@ func main() { func migrateConfig() { p, _ := homedir.Expand("~/.config/gh") fi, err := os.Stat(p) - if err != nil { - fmt.Fprintf(os.Stderr, "migration error: failed to stat %s", p) + if err != nil { // This means the file doesn't exist, and that is fine. return } if fi.Mode().IsDir() {