Don't print an error if file doesn't exist
This commit is contained in:
parent
40d45da12d
commit
14561cba9f
1 changed files with 1 additions and 2 deletions
3
main.go
3
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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue