src/turbine/database/tripdb.go
Function updateDay
has 63 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func updateDay(
updatedDay *wings.Day, createOnNonExist bool,
) bool {
existingDay := fetchDay(int64(updatedDay.ID))
if updatedDay.ID == -1 || existingDay.ID != updatedDay.ID {
Function updateDay
has 6 return statements (exceeds 4 allowed). Open
Open
func updateDay(
updatedDay *wings.Day, createOnNonExist bool,
) bool {
existingDay := fetchDay(int64(updatedDay.ID))
if updatedDay.ID == -1 || existingDay.ID != updatedDay.ID {