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

Commit

Permalink
Rename inner function
Browse files Browse the repository at this point in the history
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
  • Loading branch information
treble-snake and yurishkuro committed Mar 29, 2021
1 parent e55f26b commit 6222bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reference.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Span from './span';
import SpanContext from './span_context';

const getContext = (contextOrSpan: SpanContext | Span): SpanContext => {
const toContext = (contextOrSpan: SpanContext | Span): SpanContext => {
if (contextOrSpan instanceof SpanContext) {
return contextOrSpan;
}
Expand Down Expand Up @@ -56,6 +56,6 @@ export default class Reference {
*/
constructor(type: string, referencedContext: SpanContext | Span) {
this._type = type;
this._referencedContext = getContext(referencedContext);
this._referencedContext = toContext(referencedContext);
}
}

0 comments on commit 6222bc6

Please sign in to comment.