Skip to content

Commit

Permalink
removed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Ye committed Aug 29, 2012
1 parent d395e30 commit 79fc384
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dropbox.opa
Expand Up @@ -135,7 +135,7 @@ Please re-run your application with: --dropbox-config option")
match (segs) { match (segs) {
case []: [] case []: []
case ["." | xs]: aux(xs) case ["." | xs]: aux(xs)
case [x, ".." | xs]: aux(xs) case [_x, ".." | xs]: aux(xs)
case [x | xs]: [x | aux(xs)] case [x | xs]: [x | aux(xs)]
} }
} }
Expand Down
2 changes: 1 addition & 1 deletion src/facebook.opa
Expand Up @@ -104,7 +104,7 @@ Please re-run your application with: --fb-config option")
outcome = FbGraph.Post.feed(feed, creds.token) outcome = FbGraph.Post.feed(feed, creds.token)
response = response =
match (outcome) { match (outcome) {
case {~success}: <>Successfully published Facebook feed item: «{feed.message}»</> case {success:_}: <>Successfully published Facebook feed item: «{feed.message}»</>
case {~error}: <>Error: <b>{error.error}</b>; {error.error_description}</> case {~error}: <>Error: <b>{error.error}</b>; {error.error_description}</>
} }
Service.respond_with(response) Service.respond_with(response)
Expand Down
2 changes: 1 addition & 1 deletion src/twitter.opa
Expand Up @@ -80,7 +80,7 @@ Please re-run your application with: --twitter-config option")


private function authenticate() { private function authenticate() {
match (TWA.get_request_token(redirect)) { match (TWA.get_request_token(redirect)) {
case {~error}: case {error:_}:
Service.respond_with(<>Twitter authorization failed</>) Service.respond_with(<>Twitter authorization failed</>)
case {success: token}: case {success: token}:
auth_url = TWA.build_authorize_url(token.token) auth_url = TWA.build_authorize_url(token.token)
Expand Down
2 changes: 1 addition & 1 deletion src/webshell.opa
Expand Up @@ -113,7 +113,7 @@ function page(cmd) {
} }


function connect(connector, raw_data) { function connect(connector, raw_data) {
connector(Text.to_string(raw_data)) _ = connector(Text.to_string(raw_data))
Resource.default_redirection_page("/") Resource.default_redirection_page("/")
} }


Expand Down

0 comments on commit 79fc384

Please sign in to comment.