Chromium Code Reviews| Index: runtime/lib/string_buffer.dart |
| =================================================================== |
| --- runtime/lib/string_buffer.dart (revision 1520) |
| +++ runtime/lib/string_buffer.dart (working copy) |
| @@ -32,7 +32,9 @@ |
| */ |
| StringBuffer add(Object obj) { |
| String str = obj.toString(); |
| - if (str === null || str.isEmpty()) return; |
| + if (str === null || str.isEmpty()) { |
| + return this; |
| + } |
| _buffer.add(str); |
| _length += str.length; |
| return this; |