Remove unnecessary async from 9 functions that have no await
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -325,7 +325,7 @@ watch(sidebarState, (newValue) => {
|
||||
* Switches the map type and re-renders the Cytoscape graph.
|
||||
* @param {string} type - 'processMap' or 'bpmn'.
|
||||
*/
|
||||
async function switchMapType(type) {
|
||||
function switchMapType(type) {
|
||||
mapType.value = type;
|
||||
createCy(type);
|
||||
}
|
||||
@@ -334,7 +334,7 @@ async function switchMapType(type) {
|
||||
* Switches the edge curve style and re-renders the graph.
|
||||
* @param {string} style - The curve style.
|
||||
*/
|
||||
async function switchCurveStyles(style) {
|
||||
function switchCurveStyles(style) {
|
||||
curveStyle.value = style;
|
||||
createCy(mapType.value);
|
||||
}
|
||||
@@ -343,7 +343,7 @@ async function switchCurveStyles(style) {
|
||||
* Switches the layout direction and re-renders the graph.
|
||||
* @param {string} rankValue - 'LR' (horizontal) or 'TB' (vertical).
|
||||
*/
|
||||
async function switchRank(rankValue) {
|
||||
function switchRank(rankValue) {
|
||||
rank.value = rankValue;
|
||||
createCy(mapType.value);
|
||||
}
|
||||
@@ -353,7 +353,7 @@ async function switchRank(rankValue) {
|
||||
* @param {string} type - 'freq' or 'duration'.
|
||||
* @param {string} option - The data option (e.g., 'total', 'average').
|
||||
*/
|
||||
async function switchDataLayerType(type, option) {
|
||||
function switchDataLayerType(type, option) {
|
||||
dataLayerType.value = type;
|
||||
dataLayerOption.value = option;
|
||||
createCy(mapType.value);
|
||||
|
||||
@@ -321,7 +321,7 @@ watch(sidebarState, (newValue) => {
|
||||
* Switches the map type and re-renders the Cytoscape graph.
|
||||
* @param {string} type - 'processMap' or 'bpmn'.
|
||||
*/
|
||||
async function switchMapType(type) {
|
||||
function switchMapType(type) {
|
||||
mapType.value = type;
|
||||
createCy(type);
|
||||
}
|
||||
@@ -330,7 +330,7 @@ async function switchMapType(type) {
|
||||
* Switches the edge curve style and re-renders the graph.
|
||||
* @param {string} style - The curve style ('unbundled-bezier' or 'taxi').
|
||||
*/
|
||||
async function switchCurveStyles(style) {
|
||||
function switchCurveStyles(style) {
|
||||
curveStyle.value = style;
|
||||
createCy(mapType.value);
|
||||
}
|
||||
@@ -339,7 +339,7 @@ async function switchCurveStyles(style) {
|
||||
* Switches the layout direction and re-renders the graph.
|
||||
* @param {string} rankValue - 'LR' (horizontal) or 'TB' (vertical).
|
||||
*/
|
||||
async function switchRank(rankValue) {
|
||||
function switchRank(rankValue) {
|
||||
rank.value = rankValue;
|
||||
createCy(mapType.value);
|
||||
}
|
||||
@@ -349,7 +349,7 @@ async function switchRank(rankValue) {
|
||||
* @param {string} type - 'freq' or 'duration'.
|
||||
* @param {string} option - The data option (e.g., 'total', 'average').
|
||||
*/
|
||||
async function switchDataLayerType(type, option) {
|
||||
function switchDataLayerType(type, option) {
|
||||
dataLayerType.value = type;
|
||||
dataLayerOption.value = option;
|
||||
createCy(mapType.value);
|
||||
|
||||
Reference in New Issue
Block a user