Use single quotes for identifiers

This commit is contained in:
Daniel Gasienica 2018-04-11 15:44:52 -04:00
parent 819671a23a
commit 24f4ad53bc
15 changed files with 73 additions and 73 deletions

View file

@ -26,11 +26,11 @@ exports.markAttachmentMigrationComplete = connection =>
// Private API
exports._getItem = (connection, key) => {
if (!isObject(connection)) {
throw new TypeError('"connection" is required');
throw new TypeError("'connection' is required");
}
if (!isString(key)) {
throw new TypeError('"key" must be a string');
throw new TypeError("'key' must be a string");
}
const transaction = connection.transaction(ITEMS_STORE_NAME, 'readonly');
@ -47,11 +47,11 @@ exports._getItem = (connection, key) => {
exports._setItem = (connection, key, value) => {
if (!isObject(connection)) {
throw new TypeError('"connection" is required');
throw new TypeError("'connection' is required");
}
if (!isString(key)) {
throw new TypeError('"key" must be a string');
throw new TypeError("'key' must be a string");
}
const transaction = connection.transaction(ITEMS_STORE_NAME, 'readwrite');
@ -68,11 +68,11 @@ exports._setItem = (connection, key, value) => {
exports._deleteItem = (connection, key) => {
if (!isObject(connection)) {
throw new TypeError('"connection" is required');
throw new TypeError("'connection' is required");
}
if (!isString(key)) {
throw new TypeError('"key" must be a string');
throw new TypeError("'key' must be a string");
}
const transaction = connection.transaction(ITEMS_STORE_NAME, 'readwrite');