Skip to content

Commit b809248

Browse files
committed
clean code
1 parent d18abc7 commit b809248

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

sdk/java/libjfs/kerberos.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -403,17 +403,8 @@ func (vol *volParams) isHostAllowed(realUser, ips, hostname string) bool {
403403
}
404404

405405
type kerberos struct {
406-
vols map[string]*volParams
407-
mu sync.Mutex
408-
isRenewer bool
409-
}
410-
411-
func (k *kerberos) getSuperUser(volname string) (string, string) {
412-
vol := k.vols[volname]
413-
if vol != nil {
414-
return vol.superuser, vol.supergroup
415-
}
416-
return "", ""
406+
vols map[string]*volParams
407+
mu sync.Mutex
417408
}
418409

419410
func (k *kerberos) auth(volname, user, realUser, group, ips, hostname string, reqBytes []byte) syscall.Errno {

0 commit comments

Comments
 (0)