Skip to content

Commit cabd897

Browse files
committed
Format
1 parent fc04a1b commit cabd897

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/algorithms.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ function _select_algorithm(f, A, alg::Nothing; kwargs...)
7777
return default_algorithm(f, A; kwargs...)
7878
end
7979
function _select_algorithm(f, A, alg::AbstractAlgorithm; kwargs...)
80-
isempty(kwargs) || throw(ArgumentError("Additional keyword arguments are not allowed when an algorithm is specified."))
80+
isempty(kwargs) ||
81+
throw(ArgumentError("Additional keyword arguments are not allowed when an algorithm is specified."))
8182
return alg
8283
end
8384
function _select_algorithm(f, A, alg::Symbol; kwargs...)
@@ -87,7 +88,8 @@ function _select_algorithm(f, A, alg::Type; kwargs...)
8788
return _select_algorithm(f, A, alg(; kwargs...))
8889
end
8990
function _select_algorithm(f, A::AbstractMatrix, alg::NamedTuple; kwargs...)
90-
isempty(kwargs) || throw(ArgumentError("Additional keyword arguments are not allowed when algorithm parameters are specified."))
91+
isempty(kwargs) ||
92+
throw(ArgumentError("Additional keyword arguments are not allowed when algorithm parameters are specified."))
9193
return select_algorithm(f, A; alg...)
9294
end
9395
function _select_algorithm(f, A, alg; kwargs...)

src/implementations/truncation.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ struct TruncationIntersection{T<:Tuple{Vararg{TruncationStrategy}}} <:
111111
TruncationStrategy
112112
components::T
113113
end
114-
TruncationIntersection(trunc::TruncationStrategy, truncs::TruncationStrategy...) =
115-
TruncationIntersection((trunc, truncs...))
114+
function TruncationIntersection(trunc::TruncationStrategy, truncs::TruncationStrategy...)
115+
return TruncationIntersection((trunc, truncs...))
116+
end
116117

117118
function Base.:&(trunc1::TruncationStrategy, trunc2::TruncationStrategy)
118119
return TruncationIntersection((trunc1, trunc2))

0 commit comments

Comments
 (0)