Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
refactor: fix some dependencies, file copyright and typos (#5)
Browse files Browse the repository at this point in the history
PR-URL: #5
  • Loading branch information
fabiogomessilva authored and kjin committed May 7, 2018
1 parent 29c9f04 commit cbce142
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/opencensus-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"nyc": "11.6.0"
},
"dependencies": {
"async_hooks": "^1.0.0",
"continuation-local-storage": "^3.2.1",
"debug": "^3.1.0",
"intercept-stdout": "^0.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/opencensus-core/src/trace/model/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ export class Tracer implements types.Tracer {
}
}
const aRoot = new RootSpan(this, options);
const sampleDecisition: boolean = propagatedSample ?
const sampleDecision: boolean = propagatedSample ?
propagatedSample :
this.sampler.shouldSample(aRoot.traceId);

if (sampleDecisition) {
if (sampleDecision) {
aRoot.start();
this.currentRootSpan = aRoot;
newRoot = aRoot;
Expand Down
2 changes: 1 addition & 1 deletion packages/opencensus-core/test/test-console-exporter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2018 Google LLC. All Rights Reserved.
* Copyright 2018, OpenCensus Authors
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit cbce142

Please sign in to comment.