code clean up

This commit is contained in:
Daniel Gultsch 2019-07-02 11:10:21 +02:00
parent 8c526de0af
commit feba9a71ee

View file

@ -7,7 +7,7 @@ import org.hsluv.HUSLColorConverter;
import java.security.MessageDigest; import java.security.MessageDigest;
public class XEP0392Helper { class XEP0392Helper {
private static double angle(String nickname) { private static double angle(String nickname) {
try { try {
@ -20,7 +20,7 @@ public class XEP0392Helper {
} }
} }
public static int rgbFromNick(String name) { static int rgbFromNick(String name) {
double[] hsluv = new double[3]; double[] hsluv = new double[3];
hsluv[0] = angle(name) * 360; hsluv[0] = angle(name) * 360;
hsluv[1] = 100; hsluv[1] = 100;