Skip to content

Commit

Permalink
Fix a stack on remoteconfig fetch when permission is denied
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Aug 24, 2023
1 parent 6138fb9 commit 8a67190
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/remoteconfig/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func FetchObjectFile(cli *client.T, p path.T) (filename string, updated time.Tim
if tmpFile, err = os.CreateTemp(dstDir, p.Name+".conf.*.tmp"); err != nil {
return
}
} else if err != nil {
return
}
defer func() {
_ = tmpFile.Close()
Expand Down

0 comments on commit 8a67190

Please sign in to comment.