1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fixed eslint error

This commit is contained in:
Hung Nguyen
2018-04-20 23:58:52 +07:00
parent ff2e39901a
commit 8925f7c381
5 changed files with 19 additions and 29 deletions

View File

@@ -2,12 +2,9 @@ import CodeMirror from 'codemirror'
import React from 'react'
import _ from 'lodash'
import fs from 'fs'
import path from 'path'
import consts from 'browser/lib/consts'
import dataApi from 'browser/main/lib/dataApi'
const { remote } = require('electron')
const defaultEditorFontFamily = ['Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'monospace']
const buildCMRulers = (rulers, enableRulers) =>
enableRulers ? rulers.map(ruler => ({ column: ruler })) : []
@@ -48,7 +45,7 @@ export default class SnippetEditor extends React.Component {
}
saveSnippet () {
dataApi.updateSnippet(this.snippet).catch((err) => {throw err})
dataApi.updateSnippet(this.snippet).catch((err) => { throw err })
}
loadSnippet (snippetId) {