Skip to content

Commit 4a9e750

Browse files
committed
Clean up inconsistent comments.
1 parent 795551a commit 4a9e750

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

config_kde.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ bool proxy_config_kde_global_init(void) {
117117
break;
118118
}
119119

120-
// Check to see if config file exists
120+
// Check if config file exists
121121
if (access(config_path, F_OK) == -1)
122122
return false;
123123

config_mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ char *proxy_config_mac_get_auto_config_url(void) {
4141
if (!proxy_settings)
4242
return NULL;
4343

44-
// Check to see if auto-config url is enabled
44+
// Check if auto-config url is enabled
4545
if (get_cf_dictionary_bool(proxy_settings, kCFNetworkProxiesProxyAutoConfigEnable)) {
4646
// Get the auto-config url
4747
CFStringRef auto_config_url = CFDictionaryGetValue(proxy_settings, kCFNetworkProxiesProxyAutoConfigURLString);

resolver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ static bool proxy_resolver_get_proxies_for_url_from_system_config(void *ctx, con
7777
goto config_done;
7878
}
7979

80-
// Check to see if manually configured proxy is specified in system config
80+
// Check if manually configured proxy is specified in system config
8181
proxy = proxy_config_get_proxy(scheme);
8282
if (proxy) {
83-
// Check to see if we need to bypass the proxy for the url
83+
// Check if we need to bypass the proxy for the url
8484
char *bypass_list = proxy_config_get_bypass_list();
8585
bool should_bypass = should_bypass_proxy(url, bypass_list);
8686
if (should_bypass) {

resolver_gnome3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ proxy_resolver_i_s *proxy_resolver_gnome3_get_interface(void) {
269269
proxy_resolver_gnome3_cancel,
270270
proxy_resolver_gnome3_create,
271271
proxy_resolver_gnome3_delete,
272-
false /* get_proxies_for_url should be spooled to another thread */,
273-
true /* get_proxies_for_url takes into account system config */,
272+
false, // get_proxies_for_url should be spooled to another thread
273+
true, // get_proxies_for_url takes into account system config
274274
proxy_resolver_gnome3_global_init,
275275
proxy_resolver_gnome3_global_cleanup};
276276
return &proxy_resolver_gnome3_i;

resolver_mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ proxy_resolver_i_s *proxy_resolver_mac_get_interface(void) {
243243
proxy_resolver_mac_cancel,
244244
proxy_resolver_mac_create,
245245
proxy_resolver_mac_delete,
246-
false /* get_proxies_for_url should be spooled to another thread */,
247-
false /* get_proxies_for_url does not take into account system config */,
246+
false, // get_proxies_for_url should be spooled to another thread
247+
false, // get_proxies_for_url does not take into account system config
248248
proxy_resolver_mac_global_init,
249249
proxy_resolver_mac_global_cleanup};
250250
return &proxy_resolver_mac_i;

resolver_posix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ proxy_resolver_i_s *proxy_resolver_posix_get_interface(void) {
296296
proxy_resolver_posix_cancel,
297297
proxy_resolver_posix_create,
298298
proxy_resolver_posix_delete,
299-
false /* get_proxies_for_url should be spooled to another thread */,
300-
false /* get_proxies_for_url does not take into account system config */,
299+
false, // get_proxies_for_url should be spooled to another thread
300+
false, // get_proxies_for_url does not take into account system config
301301
proxy_resolver_posix_global_init,
302302
proxy_resolver_posix_global_cleanup};
303303
return &proxy_resolver_posix_i;

resolver_win8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ proxy_resolver_i_s *proxy_resolver_win8_get_interface(void) {
364364
proxy_resolver_win8_cancel,
365365
proxy_resolver_win8_create,
366366
proxy_resolver_win8_delete,
367-
true /* get_proxies_for_url is handled asynchronously */,
368-
false /* get_proxies_for_url does not take into account system config */,
367+
true, // get_proxies_for_url is handled asynchronously
368+
false, // get_proxies_for_url does not take into account system config
369369
proxy_resolver_win8_global_init,
370370
proxy_resolver_win8_global_cleanup};
371371
return &proxy_resolver_win8_i;

resolver_winrt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ proxy_resolver_i_s *proxy_resolver_winrt_get_interface(void) {
404404
proxy_resolver_winrt_cancel,
405405
proxy_resolver_winrt_create,
406406
proxy_resolver_winrt_delete,
407-
true /* get_proxies_for_url is handled asynchronously */,
408-
true /* get_proxies_for_url takes into account system config */,
407+
true, // get_proxies_for_url is handled asynchronously
408+
true, // get_proxies_for_url takes into account system config
409409
proxy_resolver_winrt_global_init,
410410
proxy_resolver_winrt_global_cleanup};
411411
return &proxy_resolver_winrt_i;

resolver_winxp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ bool proxy_resolver_winxp_get_proxies_for_url(void *ctx, const char *url) {
113113
if (proxy_info.lpszProxyBypass)
114114
bypass_list = wchar_dup_to_utf8(proxy_info.lpszProxyBypass);
115115
if (bypass_list) {
116-
// Check to see if we need to bypass the proxy for the url
116+
// Check if we need to bypass the proxy for the url
117117
bool should_bypass = should_bypass_proxy(url, bypass_list);
118118
if (should_bypass) {
119119
// Bypass the proxy for the url
@@ -234,8 +234,8 @@ proxy_resolver_i_s *proxy_resolver_winxp_get_interface(void) {
234234
proxy_resolver_winxp_cancel,
235235
proxy_resolver_winxp_create,
236236
proxy_resolver_winxp_delete,
237-
false /* get_proxies_for_url should be spooled to another thread */,
238-
false /* get_proxies_for_url does not take into account system config */,
237+
false, // get_proxies_for_url should be spooled to another thread
238+
false, // get_proxies_for_url does not take into account system config
239239
proxy_resolver_winxp_global_init,
240240
proxy_resolver_winxp_global_cleanup};
241241
return &proxy_resolver_winxp_i;

util_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ char *get_config_value(const char *config, const char *section, const char *key)
8787
}
8888
}
8989

90-
// Check to see if we are in the right section
90+
// Check if we are in the right section
9191
if (line_len > 2 && line_start[0] == '[' && line_end[-1] == ']')
9292
in_section = strncmp(line_start + 1, section, line_len - 2) == 0;
9393

0 commit comments

Comments
 (0)