Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Fix misspellings
Browse files Browse the repository at this point in the history
  • Loading branch information
Caley Woods committed Oct 6, 2019
1 parent eb2ac39 commit a407a07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/shared/dbUtilis.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function storeCover(book, path, cb) {
* @returns {String} which will be used as a id to store file info in db
*/

function genrateKey(filePath) {
function generateKey(filePath) {
if (!filePath || typeof filePath !== 'string') {
return '';
}
Expand Down Expand Up @@ -161,7 +161,7 @@ function getInfo(filePath, callback) {
}

// create a key from path
const key = genrateKey(filePath);
const key = generateKey(filePath);

// file load on file protocol
const uri = fileUrl(filePath);
Expand Down Expand Up @@ -221,8 +221,8 @@ function addToDB(file, db, cb) {
key
);

storeCover(book, coverPath, isSucces => {
if (isSucces) {
storeCover(book, coverPath, isSuccess => {
if (isSuccess) {
info.coverPath = fileUrl(coverPath);
Vibrant.from(coverPath)
.getPalette((err, palette) => {
Expand All @@ -249,4 +249,4 @@ function addToDB(file, db, cb) {
});
}

export { addToDB, storeCover, genrateKey, getInfo, parshToc };
export { addToDB, storeCover, generateKey, getInfo, parshToc };

0 comments on commit a407a07

Please sign in to comment.