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

@@ -1,13 +1,11 @@
const { remote } = require('electron')
import fs from 'fs'
import path from 'path'
import crypto from 'crypto'
import consts from 'browser/lib/consts'
function createSnippet(snippets) {
function createSnippet (snippets) {
return new Promise((resolve, reject) => {
const newSnippet = {
id: crypto.randomBytes(16).toString('hex'),
const newSnippet = {
id: crypto.randomBytes(16).toString('hex'),
name: 'Unnamed snippet',
prefix: [],
content: ''