Skip to content

Commit b210f42

Browse files
author
mritd
committed
feat(config): remove error print
remove error print Signed-off-by: mritd <[email protected]>
1 parent 1c6f1c7 commit b210f42

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/mmh/config.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,7 @@ func UpdateContextTimestamp(_ *cobra.Command, _ []string) {
435435

436436
home, _ := homedir.Dir()
437437
pidFile := filepath.Join(home, ".mmh", ".pid")
438-
err := os.Remove(pidFile)
439-
if err != nil {
440-
fmt.Println(err)
441-
}
438+
_ = os.Remove(pidFile)
442439

443440
MainViper.Set(KeyContextUseTime, time.Now())
444441
utils.CheckAndExit(MainViper.WriteConfig())

0 commit comments

Comments
 (0)