Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sadick254 committed Nov 7, 2022
1 parent 99a2892 commit fea5350
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/welcome/lib/sunsetting-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class SunsettingView {
this.props = props;
etch.initialize(this);

this.element.addEventListener('click', (event) => {
this.element.addEventListener('click', event => {
const link = event.target.closest('a');
if (link && link.dataset.event) {
this.props.reporterProxy.sendEvent(
Expand All @@ -27,7 +27,7 @@ export default class SunsettingView {
serialize() {
return {
deserializer: 'SunsettingView',
uri: this.props.uri,
uri: this.props.uri
};
}

Expand Down
10 changes: 5 additions & 5 deletions packages/welcome/lib/welcome-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,31 @@ export default class WelcomePackage {
this.subscriptions = new CompositeDisposable();

this.subscriptions.add(
atom.workspace.addOpener((filePath) => {
atom.workspace.addOpener(filePath => {
if (filePath === SUNSETTING_URI) {
return this.createSunsettingView({ uri: SUNSETTING_URI });
}
})
);

this.subscriptions.add(
atom.workspace.addOpener((filePath) => {
atom.workspace.addOpener(filePath => {
if (filePath === WELCOME_URI) {
return this.createWelcomeView({ uri: WELCOME_URI });
}
})
);

this.subscriptions.add(
atom.workspace.addOpener((filePath) => {
atom.workspace.addOpener(filePath => {
if (filePath === GUIDE_URI) {
return this.createGuideView({ uri: GUIDE_URI });
}
})
);

this.subscriptions.add(
atom.workspace.addOpener((filePath) => {
atom.workspace.addOpener(filePath => {
if (filePath === CONSENT_URI) {
return this.createConsentView({ uri: CONSENT_URI });
}
Expand Down Expand Up @@ -75,7 +75,7 @@ export default class WelcomePackage {
return Promise.all([
atom.workspace.open(WELCOME_URI, { split: 'left' }),
atom.workspace.open(SUNSETTING_URI, { split: 'left' }),
atom.workspace.open(GUIDE_URI, { split: 'right' }),
atom.workspace.open(GUIDE_URI, { split: 'right' })
]);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/welcome/lib/welcome-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class WelcomeView {
this.props = props;
etch.initialize(this);

this.element.addEventListener('click', (event) => {
this.element.addEventListener('click', event => {
const link = event.target.closest('a');
if (link && link.dataset.event) {
this.props.reporterProxy.sendEvent(
Expand All @@ -27,7 +27,7 @@ export default class WelcomeView {
serialize() {
return {
deserializer: 'WelcomeView',
uri: this.props.uri,
uri: this.props.uri
};
}

Expand Down

0 comments on commit fea5350

Please sign in to comment.