aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2018-11-05 17:01:30 +0100
committerRaimo Niskanen <[email protected]>2018-11-30 10:54:52 +0100
commitf67a1cfcbdb2fbbdd9ff21467d08b61242c2d9cc (patch)
treecff90264f474cfdf3aef51977ca71512c564d9d2 /lib/stdlib/src
parenta447b904cff36fa2d690f1d0068eb28589369787 (diff)
downloadotp-f67a1cfcbdb2fbbdd9ff21467d08b61242c2d9cc.tar.gz
otp-f67a1cfcbdb2fbbdd9ff21467d08b61242c2d9cc.tar.bz2
otp-f67a1cfcbdb2fbbdd9ff21467d08b61242c2d9cc.zip
Fix statement duplication
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/gen_fsm.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/stdlib/src/gen_fsm.erl b/lib/stdlib/src/gen_fsm.erl
index fec7c6a5a3..1e18710738 100644
--- a/lib/stdlib/src/gen_fsm.erl
+++ b/lib/stdlib/src/gen_fsm.erl
@@ -748,17 +748,17 @@ format_status(Opt, StatusData) ->
Header = gen:format_status_header("Status for state machine",
Name),
Log = sys:get_log(Debug),
- Specfic = format_status(Opt, Mod, PDict, StateData),
- Specfic = case format_status(Opt, Mod, PDict, StateData) of
- S when is_list(S) -> S;
- S -> [S]
- end,
+ Specific =
+ case format_status(Opt, Mod, PDict, StateData) of
+ S when is_list(S) -> S;
+ S -> [S]
+ end,
[{header, Header},
{data, [{"Status", SysState},
{"Parent", Parent},
{"Logged events", Log},
{"StateName", StateName}]} |
- Specfic].
+ Specific].
format_status(Opt, Mod, PDict, State) ->
DefStatus = case Opt of