LibJS+LibLine: Run clang-format

This commit is contained in:
Andreas Kling 2022-02-13 14:55:23 +01:00
parent 92e0378dbd
commit 88e7d44cc4
3 changed files with 3 additions and 3 deletions

View file

@ -9,8 +9,8 @@
#include <AK/String.h>
#include <LibJS/Forward.h>
#include <LibJS/Heap/Cell.h>
#include <LibJS/Runtime/Value.h>
#include <LibJS/Runtime/Utf16String.h>
#include <LibJS/Runtime/Value.h>
namespace JS {
@ -31,6 +31,7 @@ public:
bool has_utf16_string() const { return m_has_utf16_string; }
Optional<Value> get(GlobalObject&, PropertyKey const&) const;
private:
virtual const char* class_name() const override { return "PrimitiveString"; }

View file

@ -228,7 +228,7 @@ void Editor::get_terminal_size()
// terminal which is far from useful
if (int fd = open("/dev/tty", O_RDONLY); fd != -1) {
ioctl(fd, TIOCGWINSZ, &ws);
close (fd);
close(fd);
}
}
m_num_columns = ws.ws_col;

View file

@ -37,7 +37,6 @@ bool is_an_array_index(JS::PropertyKey const& property_name)
return false;
}
// 8. Return true.
return true;
}