Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kanongil committed Nov 11, 2018
1 parent 035dca7 commit d6e5472
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/@ember/-internals/meta/lib/meta.ts
Expand Up @@ -259,7 +259,7 @@ export class Meta {
_findInheritedMap(key: string, subkey: string): any | undefined {
let pointer: Meta | null = this;
while (pointer !== null) {
let map : Map<string, any> = pointer[key];
let map: Map<string, any> = pointer[key];
if (map !== undefined) {
let value = map.get(subkey);
if (value !== undefined) {
Expand Down Expand Up @@ -737,7 +737,7 @@ export class Meta {
return this._listeners;
}

matchingListeners(eventName: string): (string | boolean | object | null)[] | undefined | void {
matchingListeners(eventName: string): (string | boolean | object | null)[] | undefined {
let listeners = this.flattenedListeners();
let result;

Expand Down Expand Up @@ -854,7 +854,7 @@ export function setMeta(obj: object, meta: Meta) {
metaStore.set(obj, meta);
}

export function peekMeta(obj: object) : Meta | null {
export function peekMeta(obj: object): Meta | null {
assert('Cannot call `peekMeta` on null', obj !== null);
assert('Cannot call `peekMeta` on undefined', obj !== undefined);
assert(
Expand Down
3 changes: 2 additions & 1 deletion packages/@ember/-internals/metal/lib/events.ts
Expand Up @@ -113,7 +113,8 @@ export function sendEvent(
) {
if (actions === undefined) {
let meta = _meta === undefined ? peekMeta(obj) : _meta;
actions = (typeof meta === 'object' && meta !== null) ? meta.matchingListeners(eventName) : undefined;
actions =
typeof meta === 'object' && meta !== null ? meta.matchingListeners(eventName) : undefined;
}

if (actions === undefined || actions.length === 0) {
Expand Down
4 changes: 3 additions & 1 deletion packages/@ember/-internals/metal/lib/property_set.ts
Expand Up @@ -146,7 +146,9 @@ function setPath(root: object, path: string, value: any, tolerant?: boolean): an
if (newRoot !== null && newRoot !== undefined) {
return set(newRoot, keyName, value);
} else if (!tolerant) {
throw new EmberError(`Property set failed: object in path "${parts.join('.')}" could not be found.`);
throw new EmberError(
`Property set failed: object in path "${parts.join('.')}" could not be found.`
);
}
}

Expand Down

0 comments on commit d6e5472

Please sign in to comment.