mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-03 15:01:56 +03:00
review fixes
This commit is contained in:
parent
aa9fbfc799
commit
a8c25bc37f
1 changed files with 9 additions and 9 deletions
|
@ -148,7 +148,7 @@ public AuthManager.AuthReport authorize(String login, AuthResponse.AuthContext c
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UserHardware getHardwareInfoByPublicKey(byte[] publicKey) {
|
public UserHardware getHardwareInfoByPublicKey(byte[] publicKey) {
|
||||||
if(StringUtil.isNullOrEmpty(getHardwareInfoByPublicKeyUrl)) {
|
if(getHardwareInfoByPublicKeyUrl == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -162,7 +162,7 @@ public UserHardware getHardwareInfoByPublicKey(byte[] publicKey) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UserHardware getHardwareInfoByData(HardwareReportRequest.HardwareInfo info) {
|
public UserHardware getHardwareInfoByData(HardwareReportRequest.HardwareInfo info) {
|
||||||
if(StringUtil.isNullOrEmpty(getHardwareInfoByDataUrl)) {
|
if(getHardwareInfoByDataUrl == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -180,7 +180,7 @@ public UserHardware getHardwareInfoByData(HardwareReportRequest.HardwareInfo inf
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UserHardware getHardwareInfoById(String id) {
|
public UserHardware getHardwareInfoById(String id) {
|
||||||
if(StringUtil.isNullOrEmpty(getHardwareInfoByIdUrl)) {
|
if(getHardwareInfoByIdUrl == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -194,7 +194,7 @@ public UserHardware getHardwareInfoById(String id) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UserHardware createHardwareInfo(HardwareReportRequest.HardwareInfo info, byte[] publicKey) {
|
public UserHardware createHardwareInfo(HardwareReportRequest.HardwareInfo info, byte[] publicKey) {
|
||||||
if(StringUtil.isNullOrEmpty(createHardwareInfoUrl)) {
|
if(createHardwareInfoUrl == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -208,7 +208,7 @@ public UserHardware createHardwareInfo(HardwareReportRequest.HardwareInfo info,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void connectUserAndHardware(UserSession userSession, UserHardware hardware) {
|
public void connectUserAndHardware(UserSession userSession, UserHardware hardware) {
|
||||||
if(StringUtil.isNullOrEmpty(connectUserAndHardwareUrl)) {
|
if(connectUserAndHardwareUrl == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -220,7 +220,7 @@ public void connectUserAndHardware(UserSession userSession, UserHardware hardwar
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addPublicKeyToHardwareInfo(UserHardware hardware, byte[] publicKey) {
|
public void addPublicKeyToHardwareInfo(UserHardware hardware, byte[] publicKey) {
|
||||||
if(StringUtil.isNullOrEmpty(addPublicKeyToHardwareInfoUrl)) {
|
if(addPublicKeyToHardwareInfoUrl == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -232,7 +232,7 @@ public void addPublicKeyToHardwareInfo(UserHardware hardware, byte[] publicKey)
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Iterable<User> getUsersByHardwareInfo(UserHardware hardware) {
|
public Iterable<User> getUsersByHardwareInfo(UserHardware hardware) {
|
||||||
if(StringUtil.isNullOrEmpty(getUsersByHardwareInfoUrl)) {
|
if(getUsersByHardwareInfoUrl == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -246,7 +246,7 @@ public Iterable<User> getUsersByHardwareInfo(UserHardware hardware) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void banHardware(UserHardware hardware) {
|
public void banHardware(UserHardware hardware) {
|
||||||
if(StringUtil.isNullOrEmpty(banHardwareUrl)) {
|
if(banHardwareUrl == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -258,7 +258,7 @@ public void banHardware(UserHardware hardware) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void unbanHardware(UserHardware hardware) {
|
public void unbanHardware(UserHardware hardware) {
|
||||||
if(StringUtil.isNullOrEmpty(unbanHardwareUrl)) {
|
if(unbanHardwareUrl == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue