Do not check isError() when making type nullable/not-null

This commit is contained in:
Andrey Breslav
2013-10-24 15:13:22 +04:00
parent 347bbfab3a
commit 5d74068bbc
@@ -118,9 +118,6 @@ public class TypeUtils {
if (type.isNullable() == nullable) {
return type;
}
if (type.isError()) {
return type;
}
// Wrapping serves two purposes here
// 1. It's requires less memory than copying with a changed nullability flag: a copy has many fields, while a wrapper has only one