thiagofm/memcached-manager

View on GitHub
lib/public/javascripts/angular/services/response.js

Summary

Maintainability
A
0 mins
Test Coverage
services.factory('Response', function() {
  return {
    valid: function(response) {
      return typeof(response.errors) == 'undefined';
    },
    errors: function(response) {
      return response.errors[0];
    }
  };
});