Skip to content

Commit

Permalink
Clean up redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft committed Oct 19, 2024
1 parent 67ce3ce commit 18df644
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions todo-go/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ func InitialiseDB(path string) error {
if err != nil {
return err
}
err = os.WriteFile(path, b, 0644)
if err != nil {
return err
}
return nil
err = os.WriteFile(path, encoding, 0644)
return err
}

0 comments on commit 18df644

Please sign in to comment.