Skip to content

Commit 81b8662

Browse files
DanielDoehringranochagithub-actions[bot]
authored
Explicit return (#2657)
* Explicit `return` * more * one more * format Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Hendrik Ranocha <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 06c3fea commit 81b8662

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/callbacks_stage/positivity_zhang_shu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ end
6464
# terminate the type-stable iteration over tuples
6565
function limiter_zhang_shu!(u, thresholds::Tuple{}, variables::Tuple{},
6666
mesh, equations, solver, cache)
67-
nothing
67+
return nothing
6868
end
6969

7070
include("positivity_zhang_shu_dg1d.jl")

src/callbacks_step/analysis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ end
595595

596596
# terminate the type-stable iteration over tuples
597597
function analyze_integrals(analysis_integrals::Tuple{}, io, du, u, t, semi)
598-
nothing
598+
return nothing
599599
end
600600

601601
# used for error checks and EOC analysis

src/solvers/dgmulti/dg_parabolic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ end
257257
function calc_boundary_flux!(flux, u, t, operator_type,
258258
boundary_conditions::NamedTuple{(), Tuple{}},
259259
mesh, equations, dg::DGMulti, cache, cache_parabolic)
260-
nothing
260+
return nothing
261261
end
262262

263263
function calc_single_boundary_flux!(flux_face_values, u_face_values, t,

src/solvers/dgsem_p4est/dg_3d.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function create_cache(mesh::Union{P4estMesh{3}, T8codeMesh{3}}, equations,
2626
nnodes(mortar_l2), nnodes(mortar_l2))
2727
for _ in 1:Threads.maxthreadid()] |> VecOfArrays
2828

29-
(; fstar_primary_threaded, fstar_secondary_threaded, fstar_tmp_threaded, u_threaded)
29+
return (; fstar_primary_threaded, fstar_secondary_threaded, fstar_tmp_threaded,
30+
u_threaded)
3031
end
3132

3233
# index_to_start_step_3d(index::Symbol, index_range)

src/solvers/dgsem_unstructured/dg_2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function calc_boundary_flux_by_type!(cache, t, BCs::Tuple{}, BC_indices::Tuple{}
358358
mesh::Union{UnstructuredMesh2D, P4estMesh,
359359
T8codeMesh},
360360
equations, surface_integral, dg::DG)
361-
nothing
361+
return nothing
362362
end
363363

364364
function calc_boundary_flux!(cache, t, boundary_condition::BC, boundary_indexing,

0 commit comments

Comments
 (0)