Skip to content

Commit

Permalink
improve name slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Feb 3, 2023
1 parent d451dd6 commit 9f007c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Picker.omnifocusjs/Resources/pick.js
Expand Up @@ -92,7 +92,7 @@
return millis / 1000 / 60 / 60 / 24;
}
}
function getDuringWorkHours() {
function isDuringWorkHours() {
const now = new Date();
const hour = now.getHours();
const day = now.getDay();
Expand All @@ -101,7 +101,7 @@
var action = new PlugIn.Action(async () => {
try {
let weights = {};
if (getDuringWorkHours()) {
if (isDuringWorkHours()) {
weights = {
work: 4,
Kraken: 2,
Expand Down
4 changes: 2 additions & 2 deletions Picker.omnifocusjs/Resources/pick.ts
Expand Up @@ -140,7 +140,7 @@
}
}

function getDuringWorkHours(): boolean {
function isDuringWorkHours(): boolean {
const now = new Date();
const hour = now.getHours();
const day = now.getDay();
Expand All @@ -151,7 +151,7 @@
var action = new PlugIn.Action(async () => {
try {
let weights: Record<string, number> = {};
if (getDuringWorkHours()) {
if (isDuringWorkHours()) {
weights = {
work: 4,
Kraken: 2,
Expand Down

0 comments on commit 9f007c1

Please sign in to comment.