Skip to content

Commit

Permalink
lint: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Takeno-hito committed Oct 3, 2023
1 parent 8f38c3a commit 9120f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func createMessage(t time.Time, rooms []*domain.Room, events []*db.Event, origin
var verifiedRoomNames []string

if len(rooms) == 0 {
roomMessage = fmt.Sprintf("本日は予約を取っていないようです。\n")
roomMessage = "本日は予約を取っていないようです。\n"
} else {
for _, room := range rooms {
if room.Verified && !slices.Contains(verifiedRoomNames, room.Place) {
Expand All @@ -118,7 +118,7 @@ func createMessage(t time.Time, rooms []*domain.Room, events []*db.Event, origin
}

if len(verifiedRoomNames) == 0 {
roomMessage = fmt.Sprintf("本日は予約を取っていないようです。\n")
roomMessage = "本日は予約を取っていないようです。\n"
} else {
timeTables := []timeTable{
{":sunny:", setTimeFromString(t, "00:00:00"), false},
Expand Down

0 comments on commit 9120f3c

Please sign in to comment.