Skip to content

Commit

Permalink
Minor code cleanups (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
J2P authored and ry committed Jan 24, 2019
1 parent 2547f02 commit 7f88b5f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
version: '{build}.{branch}'

skip_branch_with_pr: true
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
sudo: false
language: c++
git:
Expand Down
2 changes: 1 addition & 1 deletion libdeno/deno.gni
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import("//build/compiled_action.gni")

template("run_node") {
Expand Down
3 changes: 2 additions & 1 deletion src/isolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::mpsc;
use std::sync::Arc;
use std::sync::Mutex;
use std::sync::{Once, ONCE_INIT};
use std::time::Duration;
use std::time::Instant;
use tokio;
Expand Down Expand Up @@ -156,7 +157,7 @@ pub struct Metrics {
pub bytes_received: AtomicUsize,
}

static DENO_INIT: std::sync::Once = std::sync::ONCE_INIT;
static DENO_INIT: Once = ONCE_INIT;

impl Isolate {
pub fn new(
Expand Down
3 changes: 1 addition & 2 deletions tools/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

import os
import sys
from util import enable_ansi_colors, run, find_exts
from util import enable_ansi_colors, find_exts, root_path, run

enable_ansi_colors()

root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
third_party_path = os.path.join(root_path, "third_party")
cpplint = os.path.join(third_party_path, "cpplint", "cpplint.py")
tslint = os.path.join(third_party_path, "node_modules", "tslint", "bin",
Expand Down
7 changes: 3 additions & 4 deletions tools/run_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
import subprocess
import sys
import os
import util
from util import remove_and_symlink, root_path, run

root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
tools_path = os.path.join(root_path, "tools")
third_party_path = os.path.join(root_path, "third_party")
target_abs = os.path.join(third_party_path, "node_modules")
target_rel = os.path.relpath(target_abs)

util.remove_and_symlink(target_rel, "node_modules", True)
util.run(["node"] + sys.argv[1:], quiet=True)
remove_and_symlink(target_rel, "node_modules", True)
run(["node"] + sys.argv[1:], quiet=True)

0 comments on commit 7f88b5f

Please sign in to comment.