From dced413b49f00a5f696cff6cc37b78857473317e Mon Sep 17 00:00:00 2001 From: morris25 Date: Mon, 5 Nov 2018 16:11:23 -0600 Subject: [PATCH] Fixes formatting --- src/plugins/documenter.jl | 2 +- test/tests.jl | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/plugins/documenter.jl b/src/plugins/documenter.jl index 81a1192..1e2119f 100644 --- a/src/plugins/documenter.jl +++ b/src/plugins/documenter.jl @@ -46,7 +46,7 @@ function gen_plugin(p::Documenter, t::Template, pkg_name::AbstractString) "[]" end - kwargs_string = if in(:additional_kwargs, fieldnames(typeof(p))) && + kwargs_string = if :additional_kwargs in fieldnames(typeof(p)) && fieldtype(typeof(p), :additional_kwargs) <: Union{AbstractDict, NamedTuple} # We want something that looks like the following: # key1="val1", diff --git a/test/tests.jl b/test/tests.jl index 666d630..f702fea 100644 --- a/test/tests.jl +++ b/test/tests.jl @@ -408,10 +408,7 @@ end pkg_dir = joinpath(t.dir, test_pkg) function check_kwargs(kwargs, warn_str) - p = Qux( - [], - kwargs - ) + p = Qux([], kwargs) @test_logs (:warn, warn_str) gen_plugin(p, t, test_pkg) make = readchomp(joinpath(pkg_dir, "docs", "make.jl"))