Skip to content

Commit

Permalink
Structure the code
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-stuhlmann committed Jul 17, 2019
1 parent 6cf3b55 commit 4de9f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v1/converter/converter.js
Expand Up @@ -6,9 +6,9 @@ const errorHandler = require('../../helpers/messages');
router.use(errorHandler);

router.get('/rgb', (req, res) => {
const rgbColor = req.query.color.split(',').map(colorValue => parseInt(colorValue));

// RGB
const rgbColor = req.query.color.split(',').map(colorValue => parseInt(colorValue));
const [red, green, blue] = rgbColor;

// HSL
Expand Down

0 comments on commit 4de9f54

Please sign in to comment.