Kevin Sawicki 8 years ago
parent
commit
e77d7e7f62
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/common/init.js

+ 2 - 2
lib/common/init.js

@@ -2,10 +2,10 @@ const timers = require('timers')
 
 process.atomBinding = function (name) {
   try {
-    return process.binding('atom_' + process.type + '_' + name)
+    return process.binding(`atom_${process.type}_${name}`)
   } catch (error) {
     if (/No such module/.test(error.message)) {
-      return process.binding('atom_common_' + name)
+      return process.binding(`atom_common_${name}`)
     } else {
       throw error
     }