Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed Nov 15, 2017
1 parent dd3f681 commit 7284a19
Show file tree
Hide file tree
Showing 6 changed files with 675 additions and 1,301 deletions.
28 changes: 14 additions & 14 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 15 additions & 4 deletions app/src/lib/stores/app-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,9 @@ export class AppStore {
await Promise.all(
kactus.files
.filter(f => f.parsed)
.map(f => importSketchFile(repository, this.sketchPath, f, kactus.config))
.map(f =>
importSketchFile(repository, this.sketchPath, f, kactus.config)
)
)
}
} finally {
Expand Down Expand Up @@ -2378,7 +2380,12 @@ export class AppStore {
kactus.files
.filter(f => f.parsed)
.map(f =>
importSketchFile(repository, this.sketchPath, f, kactus.config)
importSketchFile(
repository,
this.sketchPath,
f,
kactus.config
)
)
)
} catch (err) {
Expand Down Expand Up @@ -2545,7 +2552,9 @@ export class AppStore {
await Promise.all(
kactus.files
.filter(f => f.parsed)
.map(f => importSketchFile(repository, this.sketchPath, f, kactus.config))
.map(f =>
importSketchFile(repository, this.sketchPath, f, kactus.config)
)
)

await this._refreshRepository(repository)
Expand Down Expand Up @@ -2762,7 +2771,9 @@ export class AppStore {
await Promise.all(
kactus.files
.filter(f => f.parsed)
.map(f => importSketchFile(repository, this.sketchPath, f, kactus.config))
.map(f =>
importSketchFile(repository, this.sketchPath, f, kactus.config)
)
)
} catch (err) {
// probably conflicts
Expand Down
4 changes: 2 additions & 2 deletions app/src/ui/changes/sketch-file-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ export class SketchFileView extends React.Component<
ISketchFileViewProps,
Readonly<{}>
> {
constructor(props: ISketchFileViewProps) {
public constructor(props: ISketchFileViewProps) {
super(props)
if (!props.sketchFile.preview) {
props.onGetPreview(props.sketchFile)
}
}

componentWillReceiveProps(nextProps: ISketchFileViewProps) {
public componentWillReceiveProps(nextProps: ISketchFileViewProps) {
if (!nextProps.sketchFile.preview) {
nextProps.onGetPreview(nextProps.sketchFile)
}
Expand Down
Loading

0 comments on commit 7284a19

Please sign in to comment.