Optimized imports

This commit is contained in:
CappielloAntonio 2021-08-01 11:48:18 +02:00
parent 8d517ae3e0
commit 0827fc10a9
80 changed files with 130 additions and 269 deletions

View file

@ -39,8 +39,9 @@ public class SubsonicPreferences {
}
public void setAuthentication(String password, String token, String salt) {
if(password != null) this.authentication = new SubsonicAuthentication(password);
if(token != null && salt != null) this.authentication = new SubsonicAuthentication(token, salt);
if (password != null) this.authentication = new SubsonicAuthentication(password);
if (token != null && salt != null)
this.authentication = new SubsonicAuthentication(token, salt);
}
public static class SubsonicAuthentication {