Skip to content

Commit

Permalink
🎨 remove an unnecessary if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Jan 22, 2019
1 parent b3a4eb7 commit 44c50e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/abort-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ export default class AbortController {
* Abort and signal to any observers that the associated activity is to be aborted.
*/
public abort(): void {
// Not depend on this.signal which is overridable.
const signal = getSignal(this)
if (signal != null) {
abortSignal(signal)
}
abortSignal(getSignal(this))
}
}

Expand Down

0 comments on commit 44c50e5

Please sign in to comment.