From 871561afd7fb4509bd15533707fcf5640431ba2e Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Mon, 16 Sep 2019 13:09:01 +0200 Subject: [PATCH] prettier function definition --- src/output.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/output.jl b/src/output.jl index aa5f89a3..9fe661f4 100644 --- a/src/output.jl +++ b/src/output.jl @@ -260,8 +260,6 @@ function _showjuno(io::IO, m::MIME"image/svg+xml", plt) end end -function Base.showable(m::MIME"application/prs.juno.plotpane+html", plt::P) where P <: Plot - return showable(MIME("text/html"), plt) -end +Base.showable(::MIME"application/prs.juno.plotpane+html", plt::Plot) = showable(MIME"text/html"(), plt) _showjuno(io::IO, m, plt) = _show(io, m, plt)