Skip to content

Commit

Permalink
feat(config): remove error print
Browse files Browse the repository at this point in the history
remove error print

Signed-off-by: mritd <mritd1234@gmail.com>
  • Loading branch information
mritd committed Dec 10, 2018
1 parent 1c6f1c7 commit b210f42
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/mmh/config.go
Expand Up @@ -435,10 +435,7 @@ func UpdateContextTimestamp(_ *cobra.Command, _ []string) {

home, _ := homedir.Dir()
pidFile := filepath.Join(home, ".mmh", ".pid")
err := os.Remove(pidFile)
if err != nil {
fmt.Println(err)
}
_ = os.Remove(pidFile)

MainViper.Set(KeyContextUseTime, time.Now())
utils.CheckAndExit(MainViper.WriteConfig())
Expand Down

0 comments on commit b210f42

Please sign in to comment.