Skip to content

Commit

Permalink
Remove redundant references
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshupei committed Aug 5, 2023
1 parent 74ee798 commit bd884d8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
import org.slf4j.LoggerFactory;

import static org.apache.linkis.filesystem.conf.WorkSpaceConfiguration.*;
import static org.apache.linkis.filesystem.conf.WorkSpaceConfiguration.FILESYSTEM_LIMIT_COLUMN_LENGTH;
import static org.apache.linkis.filesystem.constant.WorkSpaceConstants.*;

@Api(tags = "file system")
Expand Down Expand Up @@ -596,8 +595,7 @@ public Message openFile(
}
Pair<Object, List<String[]>> result = fileSource.collect()[0];
IOUtils.closeQuietly(fileSource);
message.data("metadata", result.getFirst());
message.data("fileContent", result.getSecond());
message.data("metadata", result.getFirst()).data("fileContent", result.getSecond());
message.data("type", fileSource.getFileSplits()[0].getType());
message.data("totalLine", fileSource.getTotalLine());
return message.data("page", page).data("totalPage", 0);
Expand Down

0 comments on commit bd884d8

Please sign in to comment.