Apply suggestions from code review

Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
Kalila 2021-02-25 16:18:51 -05:00 committed by GitHub
parent 8d8c141dff
commit e5ab46341f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -317,7 +317,7 @@ var handleMessage = function(channel, message, sender) {
if (channel === CHANNEL_AWAY_ENABLE && sender === MyAvatar.sessionUUID) { if (channel === CHANNEL_AWAY_ENABLE && sender === MyAvatar.sessionUUID) {
print("away.js | Got message on Hifi-Away-Enable: ", message); print("away.js | Got message on Hifi-Away-Enable: ", message);
if (message === 'enable') { if (message === 'enable') {
setEnabled(message === 'enable'); setEnabled(true);
} else if (message === 'toggle') { } else if (message === 'toggle') {
toggleAway(); toggleAway();
} }

View file

@ -4,7 +4,7 @@
// onEscape.js // onEscape.js
// //
// Created by Kalila L. on Feb 3 2021. // Created by Kalila L. on Feb 3 2021.
// Copyright 2020 Vircadia contributors. // Copyright 2021 Vircadia contributors.
// //
// This script manages actions when the user triggers an "escape" key or action. // This script manages actions when the user triggers an "escape" key or action.
// //