mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-08 22:37:20 +08:00
refactor($interpolate): cleanup switch statement, curlies unnecessary
Closes #9530
This commit is contained in:
@@ -248,16 +248,13 @@ function $InterpolateProvider() {
|
||||
return '';
|
||||
}
|
||||
switch (typeof value) {
|
||||
case 'string': {
|
||||
case 'string':
|
||||
break;
|
||||
}
|
||||
case 'number': {
|
||||
case 'number':
|
||||
value = '' + value;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
default:
|
||||
value = toJson(value);
|
||||
}
|
||||
}
|
||||
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user