pull/5/head
~erin 2021-07-18 16:35:28 -04:00
parent d0b659a6eb
commit a95b00cf73
Signed by: erin
GPG Key ID: DA70E064A8C70F44
1 changed files with 2 additions and 2 deletions

View File

@ -83,10 +83,10 @@ pub fn write_json(users_list: &Vec<User>) -> Result<()> {
for i in 0..users_list.len() {
// Serialize the users
users_json += &serde_json::to_string(&users_list[i])?;
//if i != users_list.len() - 1 {
if i != users_list.len()-1 {
// don't append newline if it's the last element
users_json += "\n";
//}
}
}
// Write to the file