Skip to content

Commit

Permalink
Fix linting failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jdudley1123 committed Aug 1, 2023
1 parent 4ffaa7c commit ab57a3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ namespace :breathe do
people_to_sync.each { |person| person.sync_breathe_to_productive(after: earliest_date) }
rescue => e
slack_client = configure_slack
message = "There was a *#{e.class}* error with the Breathe/Productive Sync integration:\n"\
"```#{e.message}```\n"\
message = "There was a *#{e.class}* error with the Breathe/Productive Sync integration:\n" \
"```#{e.message}```\n" \
"Repository: https://github.com/dxw/scheduling-event-sync/"
notify_slack slack_client, message
backtrace = e.backtrace.reject { |x| x.include? "/bundle/ruby/" }
Expand Down
2 changes: 1 addition & 1 deletion lib/productive_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def update_events_for(person, changeset)
)

time =
event.half_day_at_start || event.half_day_at_end ?
(event.half_day_at_start || event.half_day_at_end) ?
working_time / 2 :
working_time

Expand Down

0 comments on commit ab57a3e

Please sign in to comment.