Skip to content

Commit 83e8de0

Browse files
author
Simon Hofmann
committed
Removed useless assignment which causes errors when dealing with arrays
1 parent 6223e1c commit 83e8de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libnut.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <napi.h>
22
#include <vector>
33
#include <sstream>
4+
#include <iostream>
45
#include "mouse.h"
56
#include "buffer_finalizer.h"
67
#include "deadbeef_rand.h"
@@ -451,7 +452,6 @@ int GetFlagsFromValue(Napi::Value value, MMKeyFlags *flags)
451452
if (!v.IsString())
452453
return -2;
453454

454-
std::string a = value.As<Napi::String>();
455455
MMKeyFlags f = MOD_NONE;
456456
const int rv = GetFlagsFromString(v, &f);
457457
if (rv)

0 commit comments

Comments
 (0)