Skip to content

Commit a0b8a3c

Browse files
eeyrjmrwxiaoguang
andauthored
Update cmd/main.go
Co-authored-by: wxiaoguang <[email protected]>
1 parent c7eb088 commit a0b8a3c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmd/main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,7 @@ func NewMainApp(appVer AppVersion) *cli.App {
165165
app.Commands = append(app.Commands, subCmdWithConfig...)
166166
app.Commands = append(app.Commands, subCmdStandalone...)
167167

168-
err := os.Unsetenv("XDG_CONFIG_HOME") // unset if set as HOME is managed by gitea
169-
if err != nil {
170-
fmt.Printf("error unsetting XDG_CONFIG_HOME")
171-
}
172-
168+
_ = os.Unsetenv("XDG_CONFIG_HOME") // unset if set as HOME is managed by gitea
173169
return app
174170
}
175171

0 commit comments

Comments
 (0)