mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix some warnings in script.
This commit is contained in:
parent
fab8092581
commit
e921ce859e
12 changed files with 29 additions and 18 deletions
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue