Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix dialyzer issue in yaws_dav and update known_dialyzer_warnings

  • Loading branch information...
commit 0f41b7b5693a7864108eaa19c22928b6d06911f1 1 parent 06a2b0e
@vinoski vinoski authored
Showing with 7 additions and 7 deletions.
  1. +4 −4 known_dialyzer_warnings
  2. +3 −3 src/yaws_dav.erl
View
8 known_dialyzer_warnings
@@ -1,8 +1,8 @@
-yaws.erl:1648: The pattern 'false' can never match the type 'true'
-yaws.erl:2134: Guard test Ret::'file' == 'fd' can never succeed
-yaws.erl:2142: Guard test Ret::'file' == 'binfd' can never succeed
-yaws_config.erl:540: The pattern 'false' can never match the type 'true'
+yaws.erl:1656: The pattern 'false' can never match the type 'true'
+yaws.erl:2142: Guard test Ret::'file' == 'fd' can never succeed
+yaws.erl:2150: Guard test Ret::'file' == 'binfd' can never succeed
+yaws_config.erl:548: The pattern 'false' can never match the type 'true'
yaws_ctl.erl:530: Function hup/1 has no local return
yaws_ctl.erl:535: Function stop/1 has no local return
yaws_ctl.erl:539: Function status/1 has no local return
View
6 src/yaws_dav.erl
@@ -520,7 +520,7 @@ prop_get({'DAV:',lockdiscovery},_A,R) ->
{'D:lockscope',[],[prop_get_format(scope,Lock#davlock.scope)]},
{'D:locktype',[],[prop_get_format(type,Lock#davlock.type)]},
{'D:depth',[],[prop_get_format(depth,Lock#davlock.depth)]},
- %{'D:owner',[],[prop_get_format(owner,Lock#davlock.owner)]}, % kept secret
+ %%{'D:owner',[],[prop_get_format(owner,Lock#davlock.owner)]}, % kept secret
{'D:timeout',[],[prop_get_format(timeout,Lock#davlock.timeout)]},
{'D:locktoken',[],[prop_get_format(locktoken,Lock#davlock.id)]},
{'D:lockroot',[],[prop_get_format(lockroot,Lock#davlock.path)]}
@@ -605,8 +605,8 @@ prop_get_format(locktoken,Id) ->
{'D:href',[],["opaquelocktoken:"++Id]};
prop_get_format(lockroot,Ref) ->
{'D:href',[],[Ref]};
-prop_get_format(owner,Owner) ->
- Owner;
+%%prop_get_format(owner,Owner) ->
+%% Owner;
prop_get_format(_,_) ->
throw(500).
Please sign in to comment.
Something went wrong with that request. Please try again.