Skip to content

Commit

Permalink
Generated: execute yarn lint --fix
Browse files Browse the repository at this point in the history
Follow-up to [hotwired#573][].

ESLint support was recently merged and integrated in to the Continuous
Integration checks, but excluded several existing linting violations.

This commit's diff was generated by executing `yarn lint --fix`.

These violations were discovered when rebasing [hotwired#436][].
Once this is passing and merged, these changes will be rebased into that
branch's changeset.

[hotwired#573]: hotwired#573
[hotwired#436]: https://github.com/hotwired/turbo/pull/436/files
  • Loading branch information
seanpdoyle committed May 2, 2022
1 parent 933419b commit 49c2beb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/drive/page_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export class PageRenderer extends Renderer<HTMLBodyElement, PageSnapshot> {
get reloadReason(): ReloadReason {
if (!this.newSnapshot.isVisitable) {
return {
reason: "turbo_visit_control_is_reload"
reason: "turbo_visit_control_is_reload",
}
}

if (!this.trackedElementsAreIdentical) {
return {
reason: "tracked_element_mismatch"
reason: "tracked_element_mismatch",
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/core/native/browser_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { uuid, dispatch } from "../../util"
export type ReloadReason = StructuredReason | undefined
interface StructuredReason {
reason: string
context?: {[key: string]: any}
context?: { [key: string]: any }
}

export class BrowserAdapter implements Adapter {
Expand Down Expand Up @@ -54,8 +54,8 @@ export class BrowserAdapter implements Adapter {
return this.reload({
reason: "request_failed",
context: {
statusCode
}
statusCode,
},
})
default:
return visit.loadResponse()
Expand Down
2 changes: 1 addition & 1 deletion src/core/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class Session
})
} else {
this.adapter.pageInvalidated({
reason: "turbo_disabled"
reason: "turbo_disabled",
})
}
}
Expand Down

0 comments on commit 49c2beb

Please sign in to comment.