Fix some warnings in script.

This commit is contained in:
Ms2ger 2015-02-12 20:01:38 +01:00
parent fab8092581
commit e921ce859e
12 changed files with 29 additions and 18 deletions

View file

@ -159,9 +159,9 @@ pub fn base64_atob(atob: DOMString) -> Fallible<DOMString> {
// remove them from input."
if input.len() % 4 == 0 {
if input.ends_with("==") {
input = input.slice_to(input.len() - 2)
input = &input[..input.len() - 2]
} else if input.ends_with("=") {
input = input.slice_to(input.len() - 1)
input = &input[..input.len() - 1]
}
}