Skip to content

Commit

Permalink
feat: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
xudafeng committed Jan 12, 2019
1 parent 5866fa8 commit 1e33384
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/controller/gw.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class GwController extends Controller {
return;
}
const gitBranch = ctx.safeGet(data, 'gitCommitInfo.gitBranch');

if (!gitBranch) {
ctx.fail('ERR_RELIABLE_INVALID_PARAM_ERROR', 'gitCommitInfo.gitBranch is required.');
return;
Expand Down
3 changes: 1 addition & 2 deletions app/controller/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ class HomeController extends Controller {
},
user,
}, {
title: 'Reliable Platform',
title: 'Reliable Suites for Macaca',
pageId: 'home',
SERVER_ADDRESS: this.config.reliableView.serverUrl,
STATIC_ADDRESS: this.config.reliableView.staticUrl,
assetsUrl: this.config.reliableView.assetsUrl,
version: this.app.config.pkg.version,
});
Expand Down
1 change: 0 additions & 1 deletion view/src/constants/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

export const SERVER_ADDRESS = window.pageConfig.SERVER_ADDRESS; // 9900
export const STATIC_ADDRESS = window.pageConfig.STATIC_ADDRESS; // 9920
export const PAGE_SIZE = 20;

export LANG_LIST from './lang_list';

0 comments on commit 1e33384

Please sign in to comment.