Skip to content

Commit

Permalink
Delint and rename dgutdb.go to dgutadb.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rk1274 committed Oct 29, 2024
1 parent da94e81 commit 78fe89e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ func TestServer(t *testing.T) {

subdirs, err = decodeSubdirResult(response)
So(err, ShouldBeNil)
So(len(subdirs), ShouldEqual, 34)
So(len(subdirs), ShouldEqual, 17)

response, err = query(s, EndPointBasedirHistory,
fmt.Sprintf("?id=%d&basedir=%s", usageGroup[0].GID, usageGroup[0].BaseDir))
Expand Down Expand Up @@ -940,6 +940,7 @@ func testClientsOnRealServer(t *testing.T, username, uid string, gids []string,
expectedMtime := "1970-01-01T00:01:30Z"

const numRootDirectories = 13

const numADirectories = 12

const directorySize = 1024
Expand Down
3 changes: 2 additions & 1 deletion server/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ func (s *Server) getTree(c *gin.Context) {
// has to do additional database queries to find out if di's children have
// children. If results don't belong to at least one of the allowedGIDs, they
// will be marked as NoAuth and won't include child info.
func (s *Server) diToTreeElement(di *dguta.DirInfo, filter *dguta.Filter, allowedGIDs map[uint32]bool, path string) *TreeElement {
func (s *Server) diToTreeElement(di *dguta.DirInfo, filter *dguta.Filter,
allowedGIDs map[uint32]bool, path string) *TreeElement {
if di == nil {
return &TreeElement{Path: path}
}
Expand Down

0 comments on commit 78fe89e

Please sign in to comment.