Skip to content

Commit 03d8ce6

Browse files
committed
Apply review comments
1 parent 157c118 commit 03d8ce6

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/cert_utils.erl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,4 @@ unwrap_asn1(Bin) when is_binary(Bin) -> Bin.
150150
unwrap_othername({'INSTANCE OF', Oid, Val}) -> {Oid, Val};
151151
%% TODO: Remove this clause once we drop support for OTP 27,
152152
%% which uses a 3-tuple {AnotherName, Oid, Val} format for OtherName.
153-
unwrap_othername(Another)
154-
when is_tuple(Another),
155-
tuple_size(Another) =:= 3,
156-
element(1, Another) =:= 'AnotherName' ->
157-
{element(2, Another), element(3, Another)}.
153+
unwrap_othername({'AnotherName', Oid, Val}) -> {Oid, Val}.

test/common/mongoose_helper.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,7 @@ change_config_option(Config, Option, NewValue) ->
489489

490490
restore_config(Config) ->
491491
Options = get_config_backup(Config),
492-
maps:foreach(fun do_restore_config_option/2, Options),
493-
ok.
492+
maps:foreach(fun do_restore_config_option/2, Options).
494493

495494
restore_config_option(Config, Option) ->
496495
Options = get_config_backup(Config),

0 commit comments

Comments
 (0)