MCPcopy Create free account
hub / github.com/basecamp/hey-cli / deleteFile

Method deleteFile

internal/auth/store.go:198–206  ·  view source on GitHub ↗
(origin string)

Source from the content-addressed store, hash-verified

196 }
197
198 destPath := s.credentialsPath()
199 if err := os.Rename(tmpPath, destPath); err != nil { //nolint:gosec // G703: paths constructed internally
200 if runtime.GOOS == "windows" {
201 _ = os.Remove(destPath)
202 return os.Rename(tmpPath, destPath) //nolint:gosec // G703: same
203 }
204 _ = os.Remove(tmpPath) //nolint:gosec // G703: path from os.CreateTemp
205 return err
206 }
207 return nil
208}
209

Callers 1

DeleteMethod · 0.95

Calls 2

loadAllFromFileMethod · 0.95
saveAllToFileMethod · 0.95

Tested by

no test coverage detected