Bug 932208 - Part 4: Do not compare against null in isShareableUrl. r=mfinkle

This commit is contained in:
Michael Comella 2014-06-12 18:40:11 -07:00
parent 972cb8e62f
commit 909499724f

View File

@ -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));
} }
} }