Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
fixing line length
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns committed Jun 16, 2015
1 parent e53317d commit e02f861
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
16 changes: 12 additions & 4 deletions dist/angular-locker.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@
* @param {Mixed} value
*/
this._setItem = function (key, value) {
if (! this._checkSupport()) _error('The browser does not support the "' + options.driver + '" driver');
if (! this._checkSupport()) {
_error('The browser does not support the "' + options.driver + '" driver');
}

try {
var oldVal = this._getItem(key);
Expand Down Expand Up @@ -277,7 +279,9 @@
* @return {Mixed}
*/
this._getItem = function (key) {
if (! this._checkSupport()) _error('The browser does not support the "' + options.driver + '" driver');
if (! this._checkSupport()) {
_error('The browser does not support the "' + options.driver + '" driver');
}

return this._unserialize(this._driver.getItem(this._getPrefix(key)));
};
Expand All @@ -290,7 +294,9 @@
* @return {Boolean}
*/
this._exists = function (key) {
if (! this._checkSupport()) _error('The browser does not support the "' + options.driver + '" driver');
if (! this._checkSupport()) {
_error('The browser does not support the "' + options.driver + '" driver');
}

return this._driver.hasOwnProperty(this._getPrefix(_value(key)));
};
Expand All @@ -303,7 +309,9 @@
* @return {Boolean}
*/
this._removeItem = function (key) {
if (! this._checkSupport()) _error('The browser does not support the "' + options.driver + '" driver');
if (! this._checkSupport()) {
_error('The browser does not support the "' + options.driver + '" driver');
}

if (! this._exists(key)) return false;

Expand Down
Loading

0 comments on commit e02f861

Please sign in to comment.