We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a0a38e commit fa70388Copy full SHA for fa70388
cmd/publish/script/filegen.go
@@ -161,7 +161,7 @@ func computeFundingAmountInWei(transferAmount *big.Int) *big.Int {
161
162
func deleteAndCreateFile(filePath string) (*os.File, error) {
163
if _, err := os.Stat(filePath); err == nil {
164
- if err := os.Remove(filePath); err != nil {
+ if iErr := os.Remove(filePath); iErr != nil {
165
return nil, fmt.Errorf("failed to delete existing file: %w", err)
166
}
167
} else if !os.IsNotExist(err) {
0 commit comments