Skip to content

Commit

Permalink
style(device): Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 11, 2023
1 parent 60b67b1 commit 4bb37e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Reset() {
DiscoverInterval: 5 * time.Minute,
PausedInterval: time.Minute,
PlayingInterval: 500 * time.Millisecond,
SkipDelay: 0,
SkipDelay: 0,

NetworkInterface: "",

Expand Down
2 changes: 1 addition & 1 deletion internal/config/intervals.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ func (c *Config) RegisterSkipDelay(cmd *cobra.Command) {
}); err != nil {
panic(err)
}
}
}
2 changes: 1 addition & 1 deletion internal/device/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (d *Device) tick() error {
}

for i, segment := range d.segments {
if (segment.Segment[0] + float32(config.Default.SkipDelay.Seconds())) <= castMedia.CurrentTime && castMedia.CurrentTime < segment.Segment[1]-1 {
if (segment.Segment[0]+float32(config.Default.SkipDelay.Seconds())) <= castMedia.CurrentTime && castMedia.CurrentTime < segment.Segment[1]-1 {
d.handleSegment(castMedia, castVol, segment, i)
}
}
Expand Down

0 comments on commit 4bb37e2

Please sign in to comment.