style: ensure named functions

This commit is contained in:
2026-08-09 13:09:39 +02:00
committed by Gitea
parent dd07392821
commit a086affbef
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
export const ensureUnit = function(d) {
export const ensureUnit = function ensureUnit(d) {
if (!d) d = 0;
// ensure that it is a string