Skip to content

plugins/nightlight: Remove premature optimization in updateTransitionTimings()

Vlad Zahorodnii requested to merge work/zzag/night-light-remove-force-flag into master

There are a couple of reasons why it's worth removing it:

  • it's error prone. If one forgets to pass correct "force" flag, night light will break
  • it contributes some complexity
  • updateTransitionTimings() is not called in any hot path and the code that calculates the position of the Sun is not resource intensive

Merge request reports