Skip to content

Commit

Permalink
fix some typos in permissions (denoland#3436)
Browse files Browse the repository at this point in the history
  • Loading branch information
afinch7 authored and ry committed Dec 3, 2019
1 parent cfa4f54 commit 00844b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl DenoPermissions {
if check_path_white_list(path, &self.read_whitelist) {
return PermissionState::Allow;
};
self.allow_write.request(&match path {
self.allow_read.request(&match path {
None => "Deno requests read access.".to_string(),
Some(path) => format!("Deno requests read access to \"{}\".", path),
})
Expand All @@ -238,7 +238,7 @@ impl DenoPermissions {
url: &Option<&str>,
) -> Result<PermissionState, ErrBox> {
if self.get_state_net_url(url)? == PermissionState::Ask {
return Ok(self.allow_run.request(&match url {
return Ok(self.allow_net.request(&match url {
None => "Deno requests network access.".to_string(),
Some(url) => format!("Deno requests network access to \"{}\".", url),
}));
Expand Down

0 comments on commit 00844b4

Please sign in to comment.