diff options
author | Björn Gustavsson <[email protected]> | 2015-02-25 11:44:50 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-02-25 11:44:50 +0100 |
commit | 1eaa36a4200f70be7db48de214fce3c3aacee090 (patch) | |
tree | 2d7b252fca47ee86241355b108ac537f634fa85d /lib/stdlib/src | |
parent | 54d2eee83c75fc257b9934eb2e4f2069983b4eb2 (diff) | |
parent | 250f4c0453f038f9014705eed966d6c9cb186a1a (diff) | |
download | otp-1eaa36a4200f70be7db48de214fce3c3aacee090.tar.gz otp-1eaa36a4200f70be7db48de214fce3c3aacee090.tar.bz2 otp-1eaa36a4200f70be7db48de214fce3c3aacee090.zip |
Merge branch 'nox/stdlib/erl_lint-maps/OTP-12515'
* nox/stdlib/erl_lint-maps/OTP-12515:
Properly lint map expressions in erl_lint
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/erl_lint.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl index dabedff0d4..cbe6eeec3c 100644 --- a/lib/stdlib/src/erl_lint.erl +++ b/lib/stdlib/src/erl_lint.erl @@ -2291,8 +2291,8 @@ map_fields([{Tag,_,K,V}|Fs], Vt, St, F) when Tag =:= map_field_assoc; {Pvt,St2} = F([K,V], Vt, St), {Vts,St3} = map_fields(Fs, Vt, St2, F), {vtupdate(Pvt, Vts),St3}; -map_fields([], Vt, St, _) -> - {Vt,St}. +map_fields([], _, St, _) -> + {[],St}. %% warn_invalid_record(Line, Record, State0) -> State %% Adds warning if the record is invalid. |