File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/lib/src/main/scala/codegen/DictionaryJsonWriter Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import fpp.compiler.util._
55import fpp .compiler .analysis ._
66import io .circe ._
77import io .circe .syntax ._
8- import fpp .compiler .analysis .Event .TimeInterval
9- import fpp .compiler .analysis .Event .Throttle
108
119
1210
@@ -465,16 +463,16 @@ case class DictionaryJsonEncoder(
465463
466464 /** JSON Encoding for Event.Throttle */
467465 private implicit def eventThrottleEncoder : Encoder [Event .Throttle ] = new Encoder [Event .Throttle ] {
468- override def apply (throttle : Throttle ): Json = {
466+ override def apply (throttle : Event . Throttle ): Json = {
469467 throttle match {
470- case Throttle (count, Some (every)) => Json .obj(
468+ case Event . Throttle (count, Some (every)) => Json .obj(
471469 " count" -> count.asJson,
472470 " every" -> Json .obj(
473471 " seconds" -> every.seconds.asJson,
474472 " useconds" -> every.useconds.asJson
475473 )
476474 )
477- case Throttle (count, None ) => Json .obj(
475+ case Event . Throttle (count, None ) => Json .obj(
478476 " count" -> count.asJson,
479477 " every" -> Json .Null
480478 )
You can’t perform that action at this time.
0 commit comments