Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Fix lint.
  • Loading branch information
abuccts committed Jan 20, 2020
1 parent ecc4aaa commit ddb903a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rest-server/src/controllers/v2/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const list = asyncHandler(async (req, res) => {
});

const get = asyncHandler(async (req, res) => {
const storageName = req.params.storageName
const storageName = req.params.storageName;
const userName = req.user.username;
const admin = req.user.admin;
const data = await storage.get(storageName, admin ? undefined : userName);
Expand Down
4 changes: 2 additions & 2 deletions src/rest-server/src/models/v2/job/k8s.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ const generateTaskRole = (frameworkName, taskRole, jobInfo, frameworkEnvList, co
frameworkTaskRole.task.pod.spec.containers[0].volumeMounts.push({
name: `${storage.name}-volume`,
mountPath: storage.mountPath || `/mnt/${storage.name}`,
...storage.share === false && {subPath: `${jobInfo.userName}`},
...(storage.share === false) && {subPath: jobInfo.userName},
});
frameworkTaskRole.task.pod.spec.volumes.push({
name: `${storage.name}-volume`,
Expand Down Expand Up @@ -897,7 +897,7 @@ const put = async (frameworkName, config, rawConfig) => {
if ('extras' in config && config.extras.storages) {
const userStorages = {};
(await storageModel.list()).storages
.forEach(userStorage => userStorages[userStorage.name] = userStorage);
.forEach((userStorage) => userStorages[userStorage.name] = userStorage);
for (let storage of config.extras.storages) {
if (!storage.name) {
continue;
Expand Down

0 comments on commit ddb903a

Please sign in to comment.