We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0706e9c commit 25cb993Copy full SHA for 25cb993
app/src/main/java/com/github/mobile/core/commit/CommitUtils.java
@@ -81,10 +81,7 @@ public static String abbreviate(final String sha) {
81
* @return true if valid, false otherwise
82
*/
83
public static boolean isValidCommit(final String sha) {
84
- if (!TextUtils.isEmpty(sha))
85
- return sha.matches("[a-fA-F0-9]+");
86
- else
87
- return false;
+ return !TextUtils.isEmpty(sha) && sha.matches("[a-fA-F0-9]+");
88
}
89
90
/**
0 commit comments