From 79cb8ebe66b60eb05b28a74fdca386f3ed99d760 Mon Sep 17 00:00:00 2001 From: shanshuirenjia <978987373@qq.com> Date: Wed, 12 Dec 2018 08:40:10 +0800 Subject: [PATCH] optimized code --- frontend/src/components/cur-dir-path/dir-path.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/cur-dir-path/dir-path.js b/frontend/src/components/cur-dir-path/dir-path.js index c1771ca591..3b6db7bb58 100644 --- a/frontend/src/components/cur-dir-path/dir-path.js +++ b/frontend/src/components/cur-dir-path/dir-path.js @@ -44,11 +44,10 @@ class DirPath extends React.Component { render() { let { currentPath, repoName } = this.props; let pathElem = this.turnPathToLink(currentPath); - let pathPrefix = this.props.pathPrefix !== undefined ? this.props.pathPrefix : false; return (