Commit d4c7052c authored by Jacob Schatz's avatar Jacob Schatz Committed by Eric Eastwood

Used && instead of nested

parent be27da3d
...@@ -173,11 +173,9 @@ const RepoStore = { ...@@ -173,11 +173,9 @@ const RepoStore = {
return; return;
} }
if (foundIndex) { if (foundIndex && foundIndex > 0) {
if (foundIndex > 0) {
RepoStore.setActiveFiles(RepoStore.openedFiles[foundIndex - 1]); RepoStore.setActiveFiles(RepoStore.openedFiles[foundIndex - 1]);
} }
}
}, },
addToOpenedFiles(file) { addToOpenedFiles(file) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment