Use DOMString::new() somewhat consistently.

This commit is contained in:
Ms2ger 2015-11-03 14:11:07 +01:00
parent dab3926622
commit e6aa976462
24 changed files with 67 additions and 68 deletions

View file

@ -113,13 +113,13 @@ impl BlobMethods for Blob {
}
};
let relativeContentType = match contentType {
None => "".to_owned(),
None => DOMString::new(),
Some(mut str) => {
if is_ascii_printable(&str) {
str.make_ascii_lowercase();
str
} else {
"".to_owned()
DOMString::new()
}
}
};