Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/WebGAL-electron/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1158,9 +1158,9 @@ jake@^10.8.5:
minimatch "^3.1.2"

js-yaml@^4.1.0:
version "4.1.0"
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz"
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
version "4.1.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.1.tgz#854c292467705b699476e1a2decc0c8a3458806b"
integrity sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==
dependencies:
argparse "^2.0.1"

Expand Down
5 changes: 3 additions & 2 deletions packages/origine2/src/utils/combineSubmitString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { arg } from "webgal-parser/src/interface/sceneInterface";
* @param newArgs 新的参数数组, 若 fullMode 为 false, 会将值为 true 的 arg 简写为 -arg, 省略值为 false 或空字符串的 arg
* @returns 合并后的用于提交的字符串
*/
// eslint-disable-next-line max-params
export function combineSubmitString (
commandStr: string | undefined,
content: string,
Expand All @@ -33,7 +34,7 @@ export function combineSubmitString (
unsupportedArg.forEach((v, k, m) => {
argStrings.push(argToString(k, v));
});

let combinedString = "";
if (commandStr !== undefined) {
combinedString += `${commandStr}:`;
Expand Down Expand Up @@ -71,4 +72,4 @@ export function argToSimplifiedString(
} else {
return ``;
}
}
}