Skip to content
Snippets Groups Projects
Commit 207aba49 authored by Antoine Fontaine's avatar Antoine Fontaine :8ball:
Browse files

Cosmetic changes to make the source more readable, hopefully

parent bf1ca1ca
Branches dev
No related merge requests found
......@@ -213,7 +213,9 @@ request_url (const gchar *url,
soup_session_send_async (self.session, msg, NULL, request_url_cb, (gpointer)cb_info);
} else { // offline_mode
g_print ("using cache for %s\n", filename);
g_print ("using cache for \"%s\"\n", filename);
// this is not quite async, but works «fast enough»
g_autoptr (GFile) file = g_file_new_for_uri (filename);
GInputStream *is;
......@@ -389,7 +391,7 @@ got_folder_content_cb (GInputStream *is,
gpointer user_data)
{
g_autofree gchar *html = NULL;
gsize html_size;
gsize html_size;
read_g_input_stream (is, &html, &html_size);
struct FolderContent content = moodle_parse_folder_content (html, html_size, filename);
if (should_save_to_disk)
......@@ -488,4 +490,3 @@ moodle_provider_init (MoodleOnlineMode mode,
SOUP_SESSION_FEATURE (self.logger));
} else self.logger = NULL;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment