summaryrefslogtreecommitdiff
path: root/src/rebar_protobuffs_compiler.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_protobuffs_compiler.erl')
-rw-r--r--src/rebar_protobuffs_compiler.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rebar_protobuffs_compiler.erl b/src/rebar_protobuffs_compiler.erl
index 6118562..122440c 100644
--- a/src/rebar_protobuffs_compiler.erl
+++ b/src/rebar_protobuffs_compiler.erl
@@ -74,13 +74,7 @@ clean(_Config, _AppFile) ->
%% ===================================================================
protobuffs_is_present() ->
- case code:which(protobuffs_compile) of
- non_existing ->
- false;
- _ ->
- true
- end.
-
+ code:which(protobuffs_compile) =/= non_existing.
beam_file(Proto) ->
filename:basename(Proto, ".proto") ++ "_pb.beam".