Skip to content

Commit 29bdef1

Browse files
committed
Avoid exceptions parsing playlist writer configuration.
These may have been caused by overzealous avoidance of reflection.
1 parent e70ceda commit 29bdef1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/beat_link_trigger/playlist_writer.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
"Retrieve the preferred minimum time, in seconds, a track must be
302302
playing in order to get written to the playlist."
303303
[]
304-
(or (when-let [^String pref (min-time-pref-key (prefs/get-preferences))]
304+
(or (when-let [pref (min-time-pref-key (prefs/get-preferences))]
305305
(try
306306
(Long/valueOf pref)
307307
(catch Exception e
@@ -312,7 +312,7 @@
312312
"Retrieve the preference setting for filtering out players that are
313313
not On-Air."
314314
[]
315-
(or (when-let [^String pref (on-air-pref-key (prefs/get-preferences))]
315+
(or (when-let [pref (on-air-pref-key (prefs/get-preferences))]
316316
(try
317317
(Boolean/valueOf pref)
318318
(catch Exception e
@@ -324,7 +324,7 @@
324324
playlist file when all players have been stopped for a threshold
325325
interval."
326326
[]
327-
(or (when-let [^String pref (split-pref-key (prefs/get-preferences))]
327+
(or (when-let [pref (split-pref-key (prefs/get-preferences))]
328328
(try
329329
(Boolean/valueOf pref)
330330
(catch Exception e
@@ -336,7 +336,7 @@
336336
before forcing the start of a new playlist when a new track starts
337337
playing."
338338
[]
339-
(or (when-let [^String pref (new-playlist-threshold-pref-key (prefs/get-preferences))]
339+
(or (when-let [pref (new-playlist-threshold-pref-key (prefs/get-preferences))]
340340
(try
341341
(Long/valueOf pref)
342342
(catch Exception e

0 commit comments

Comments
 (0)