code quality
This commit is contained in:
@ -151,7 +151,7 @@ export default class Model {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return error for a specific attribute name if any
|
||||
* Return error for a specific attribute name if any
|
||||
*/
|
||||
error(attr=null) {
|
||||
return attr === null ? this.errors : this.errors && this.errors[attr]
|
||||
@ -283,4 +283,3 @@ export class Set {
|
||||
Set[Symbol.iterator] = function () {
|
||||
return this.items[Symbol.iterator]();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user