[*] 日常优化
This commit is contained in:
@@ -45,9 +45,7 @@ public class Session implements Closeable {
|
|||||||
* @return 是否通过
|
* @return 是否通过
|
||||||
*/
|
*/
|
||||||
public boolean authenticate(Client client) {
|
public boolean authenticate(Client client) {
|
||||||
return
|
return this.source == client || this.target == client;
|
||||||
this.source == client ||
|
|
||||||
this.target == client;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user