Skip to content

Commit e20a78f

Browse files
fix build
1 parent 5c1def8 commit e20a78f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/server/smb/server.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ func (s *Server) NewSmbGlobalMapping(context context.Context, request *internal.
6363
return response, fmt.Errorf("remote path is empty")
6464
}
6565

66-
if mappingPath, err := getRootMappingPath(remotePath); err != nil {
66+
mappingPath, err := getRootMappingPath(remotePath)
67+
if err != nil {
6768
return response, err;
6869
}
6970

@@ -130,7 +131,8 @@ func (s *Server) RemoveSmbGlobalMapping(context context.Context, request *intern
130131
return response, fmt.Errorf("remote path is empty")
131132
}
132133

133-
if mappingPath, err := getRootMappingPath(remotePath); err != nil {
134+
mappingPath, err := getRootMappingPath(remotePath)
135+
if err != nil {
134136
return response, err;
135137
}
136138

0 commit comments

Comments
 (0)