]> granicus.if.org Git - ejabberd/commitdiff
No need to explicitly return ok here
authorPeter Lemenkov <lemenkov@redhat.com>
Mon, 30 Jan 2017 13:29:53 +0000 (14:29 +0100)
committerPeter Lemenkov <lemenkov@redhat.com>
Mon, 30 Jan 2017 13:52:04 +0000 (14:52 +0100)
No need to explicitly return ok here. Return value will be ignored
anyway.

Signed-off-by: Peter Lemenkov <lemenkov@redhat.com>
src/cyrsasl_anonymous.erl
src/cyrsasl_oauth.erl
src/cyrsasl_plain.erl

index 75ae9bd8ff846d368e66ba563e47581f347878b0..36841fce6b162a80cb76b034e7ae9112dfd77dd7 100644 (file)
@@ -35,8 +35,7 @@
 -record(state, {server = <<"">> :: binary()}).
 
 start(_Opts) ->
-    cyrsasl:register_mechanism(<<"ANONYMOUS">>, ?MODULE, plain),
-    ok.
+    cyrsasl:register_mechanism(<<"ANONYMOUS">>, ?MODULE, plain).
 
 stop() -> ok.
 
index d53b791e96984f7020004b34c41b6565208f1807..1290b282299073f3e1ddf2774233074caa5acca8 100644 (file)
@@ -36,8 +36,7 @@
 -export_type([error_reason/0]).
 
 start(_Opts) ->
-    cyrsasl:register_mechanism(<<"X-OAUTH2">>, ?MODULE, plain),
-    ok.
+    cyrsasl:register_mechanism(<<"X-OAUTH2">>, ?MODULE, plain).
 
 stop() -> ok.
 
index 0424065eb356b1e0d6b76326502a1df0d8136e86..8094297485c2d06f6fc6f2eb398481224a5f80ba 100644 (file)
@@ -36,8 +36,7 @@
 -export_type([error_reason/0]).
 
 start(_Opts) ->
-    cyrsasl:register_mechanism(<<"PLAIN">>, ?MODULE, plain),
-    ok.
+    cyrsasl:register_mechanism(<<"PLAIN">>, ?MODULE, plain).
 
 stop() -> ok.