Skip to content

Commit

Permalink
Removed redundant wording
Browse files Browse the repository at this point in the history
  • Loading branch information
bakatz committed Jul 13, 2023
1 parent 554f6e2 commit 9b627b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/lambda/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ func Handler(ctx context.Context) (Response, error) {
if todo.CompletedAt.Before(startOfLookbackWindow) {
continue
}
tweetMessage := "Just completed a task for " + project.Name + ": " + todo.Body
tweetMessage := "Just completed a task: " + todo.Body
if len(todo.Attachments) > 0 {
tweetMessage += " " + todo.Attachments[0].URL
tweetMessage += " " + todo.Attachments[0].URL // Just use the first attachment for now
}
logger.Info("About to tweet this message: " + tweetMessage)
_, err := twitterClient.CreateTweet(context.Background(), twitter.CreateTweetRequest{
Expand Down

0 comments on commit 9b627b5

Please sign in to comment.