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

Commit 7837f51

Browse files
luanamartinssantossilva-fabio
authored andcommitted
refactor: apply code guidelines rules to util.ts
1 parent 0e9774d commit 7837f51

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • packages/opencensus-core/src/internal

packages/opencensus-core/src/internal/util.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
* limitations under the License.
1515
*/
1616

17-
import * as crypto from 'crypto'
18-
import * as Debug from "debug"
17+
import * as crypto from 'crypto';
18+
import * as Debug from 'debug';
1919

20-
export const debug = Debug("opencensus");
20+
export const debug = Debug('opencensus');
2121

2222

23-
//TODO: rethink this snippet aproach
24-
//--- Code snippet from Stackdriver Trace Agent
23+
// TODO: rethink this snippet aproach
24+
//--- Code snippet from Stackdriver Trace Agent
2525
// Use 6 bytes of randomness only as JS numbers are doubles not 64-bit ints.
2626
const SPAN_ID_RANDOM_BYTES = 6;
2727

@@ -35,6 +35,6 @@ const spanRandomBuffer = randomFillSync ?
3535
() => randomBytes(SPAN_ID_RANDOM_BYTES);
3636

3737
export function randomSpanId() {
38-
// tslint:disable-next-line:ban Needed to parse hexadecimal.
39-
return parseInt(spanRandomBuffer().toString('hex'), 16).toString();
40-
}
38+
// tslint:disable-next-line:ban Needed to parse hexadecimal.
39+
return parseInt(spanRandomBuffer().toString('hex'), 16).toString();
40+
}

0 commit comments

Comments
 (0)