Minor PR comments

Removed a null check and intialised `this.context` to an empty object.
This commit is contained in:
emizzle 2018-10-10 23:29:43 +11:00 committed by Pascal Precht
parent 46511bcfe8
commit 5d29ab1d42
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class EmbarkController {
// set a default context. should be overwritten by an action
// method before being used
this.context = [constants.contexts.any];
this.context = {};
}
initConfig(env, options) {

View File

@ -53,7 +53,6 @@ export function getProcesses(state) {
}
export function getProcessLogs(state) {
if(!state.entities.processLogs.length) return [];
const processLogsObj = state.entities.processLogs.reduce((processLogs, processLog) => {
const existingProcessLog = processLogs[processLog.process];
if(!existingProcessLog || processLog.timestamp > existingProcessLog.timestamp){