Skip to content

Commit

Permalink
Fix Codefactor Part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrcubix committed Apr 3, 2024
1 parent 4c9ce00 commit 7024ad8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Touch-Gestures.Lib/Entities/BindableProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void Add(Gesture gesture)
break;
default:
throw new ArgumentException("Unknown gesture type.");
};
}
}

public void Update(SerializableProfile profile, SharedTabletReference tablet, Dictionary<int, TypeInfo> identifierToPlugin)
Expand Down
2 changes: 1 addition & 1 deletion Touch-Gestures.Tests/Samples/PinchSamples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static TouchPoint[][] GenerateRotateReportsTowardsTarget(int n, Vector2 o
report[1] = new TouchPoint
{
TouchID = 1,
Position = GeneratePointInCircle(origin, 50, (i * degreeIncrement + 180) * DegToRad),
Position = GeneratePointInCircle(origin, 50, ((i * degreeIncrement) + 180) * DegToRad),
};

reports[i] = report;
Expand Down
1 change: 0 additions & 1 deletion Touch-Gestures.UX/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ protected override void OnDataContextChanged(EventArgs e)
_bindingsOverviewViewModel = vm.BindingsOverviewViewModel;
}


if (_registeredHandlers == false)
_bindingsOverviewViewModel?.ConfirmationDialog.RegisterHandler(ShowConfirmationDialogAsync);
}
Expand Down
5 changes: 2 additions & 3 deletions build-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,8 @@ do
echo ""

# Move files contained in variable main to build/plugin
move_files

if [ $? -ne 0 ];

if ! move_files;
then
echo "Failed to move necessary files to build/plugin"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion build-ux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ zip_dir_contents () {
echo "Zipping $f"
(
cd $1
zip -r $2 *
zip -r $2 ./*
)
}

Expand Down

0 comments on commit 7024ad8

Please sign in to comment.