added newline at EOF for any file not having one at its end

This commit is contained in:
delvh
2020-03-14 19:59:37 +01:00
parent 00e6d6c8a1
commit 4c94686172
15 changed files with 36 additions and 46 deletions

View File

@ -127,11 +127,9 @@ public class Startup {
// Save all users to the local database and flush cache
localDb.setUsers(client.getUsers());
writeProxy.flushCache();
} else {
} else
// Set all contacts to offline mode
localDb.getUsers().values().stream().filter(u -> u != localDb.getUser()).forEach(u -> u.setStatus(UserStatus.OFFLINE));
}
// Display ChatWindow and StatusTrayIcon
EventQueue.invokeLater(() -> {
@ -173,4 +171,4 @@ public class Startup {
}
}));
}
}
}