mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 932208 - Part 4: Do not compare against null in isShareableUrl. r=mfinkle
This commit is contained in:
parent
972cb8e62f
commit
909499724f
@ -157,7 +157,7 @@ public class StringUtils {
|
|||||||
|
|
||||||
public static boolean isShareableUrl(final String url) {
|
public static boolean isShareableUrl(final String url) {
|
||||||
final String scheme = Uri.parse(url).getScheme();
|
final String scheme = Uri.parse(url).getScheme();
|
||||||
return !(scheme.equals("about") || scheme.equals("chrome") ||
|
return !("about".equals(scheme) || "chrome".equals(scheme) ||
|
||||||
scheme.equals("file") || scheme.equals("resource"));
|
"file".equals(scheme) || "resource".equals(scheme));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user