From: Alexis Laferrière Date: Tue, 11 Aug 2015 19:21:43 +0000 (-0400) Subject: examples/moles: apply FIXME with `min` as instructed by past me X-Git-Tag: v0.7.8~92^2~3 X-Git-Url: http://nitlanguage.org examples/moles: apply FIXME with `min` as instructed by past me Signed-off-by: Alexis Laferrière --- diff --git a/examples/mnit_moles/src/moles_android.nit b/examples/mnit_moles/src/moles_android.nit index 40e463a..1da39be 100644 --- a/examples/mnit_moles/src/moles_android.nit +++ b/examples/mnit_moles/src/moles_android.nit @@ -40,10 +40,7 @@ redef class App var ys = display.height.to_f/th.to_f*0.4 # Use the smaller scale so everything fits - # FIXME replace these conditions with xs.min(ys) when Float isa Comparable - if xs < ys then - display_scale_container.item = xs - else display_scale_container.item = ys + display_scale_container.item = xs.min(ys) super end